diff options
author | Einar Johan Trøan Sømåen | 2013-02-01 00:48:47 +0100 |
---|---|---|
committer | Einar Johan Trøan Sømåen | 2013-02-01 00:48:47 +0100 |
commit | 6b614f8ff508449fd5db3af5dcd5b689d69718b0 (patch) | |
tree | 50a432d7bf35a2781f8debcfb5f97f11c032fa7b /engines | |
parent | fcc33c22d869f7015cbac8d2e794040cae73e9ba (diff) | |
download | scummvm-rg350-6b614f8ff508449fd5db3af5dcd5b689d69718b0.tar.gz scummvm-rg350-6b614f8ff508449fd5db3af5dcd5b689d69718b0.tar.bz2 scummvm-rg350-6b614f8ff508449fd5db3af5dcd5b689d69718b0.zip |
WINTERMUTE: Avoid using ldepxf/frexpf
Diffstat (limited to 'engines')
-rw-r--r-- | engines/wintermute/base/base_persistence_manager.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/engines/wintermute/base/base_persistence_manager.cpp b/engines/wintermute/base/base_persistence_manager.cpp index 86b65fba7a..84a1c2ec67 100644 --- a/engines/wintermute/base/base_persistence_manager.cpp +++ b/engines/wintermute/base/base_persistence_manager.cpp @@ -502,7 +502,7 @@ bool BasePersistenceManager::putTimeDate(const TimeDate &t) { _saveStream->writeSint32LE(t.tm_mday); _saveStream->writeSint32LE(t.tm_mon); _saveStream->writeSint32LE(t.tm_year); - _saveStream->writeSint32LE(t.tm_wday); //TODO: Add this in when merging next + _saveStream->writeSint32LE(t.tm_wday); if (_saveStream->err()) { return STATUS_FAILED; @@ -518,13 +518,13 @@ TimeDate BasePersistenceManager::getTimeDate() { t.tm_mday = _loadStream->readSint32LE(); t.tm_mon = _loadStream->readSint32LE(); t.tm_year = _loadStream->readSint32LE(); - t.tm_wday = _loadStream->readSint32LE(); //TODO: Add this in when merging next + t.tm_wday = _loadStream->readSint32LE(); return t; } void BasePersistenceManager::putFloat(float val) { int32 exponent = 0; - float significand = frexpf(val, &exponent); + float significand = frexp(val, &exponent); Common::String str = Common::String::format("FS%f", significand); _saveStream->writeUint32LE(str.size()); _saveStream->writeString(str); @@ -537,7 +537,7 @@ float BasePersistenceManager::getFloat() { float significand = 0.0f; int32 exponent = _loadStream->readSint32LE(); int ret = sscanf(str, "FS%f", &significand); - value = ldexpf(significand, exponent); + value = ldexp(significand, exponent); if (ret != 1) { warning("%s not parsed as float", str); } |