[Commits] [wesnoth/wesnoth] b79df5: gui2/tgame_cache_options: Handle negative values f...
GitHub
noreply at github.com
Tue Dec 23 08:57:18 UTC 2014
Branch: refs/heads/master
Home: https://github.com/wesnoth/wesnoth
Commit: b79df59e08b265f1ad675ef0260fbf86619b1657
https://github.com/wesnoth/wesnoth/commit/b79df59e08b265f1ad675ef0260fbf86619b1657
Author: Ignacio R. Morelle <shadowm at wesnoth.org>
Date: 2014-12-23 (Tue, 23 Dec 2014)
Changed paths:
M src/gui/dialogs/game_cache_options.cpp
Log Message:
-----------
gui2/tgame_cache_options: Handle negative values from filesystem::dir_size()
The Boost.filesystem version of this function yields a negative value of
-1 to signify a non-critical error. For some reason, utils::si_string()
formats this incorrectly and even yields an incorrect number, probably
due to some floating point math mess-up.
Kind of fixes bug #22261 by preventing a call to utils::si_string() with
a negative value, but that function really ought to be fixed separately
anyway.
More information about the Commits
mailing list