compile fix: use the correct format string to parse the number
Mathias Gumz akira at fluxbox dot org
2 files changed,
2 insertions(+),
2 deletions(-)
M
src/FbTk/ThemeItems.cc
→
src/FbTk/ThemeItems.cc
@@ -120,7 +120,7 @@ }
template <> void ThemeItem<unsigned int>::setFromString(const char *str) { - sscanf(str, "%d", &m_value); + sscanf(str, "%u", &m_value); } template <>
M
src/Resources.cc
→
src/Resources.cc
@@ -113,7 +113,7 @@
template<> void FbTk::Resource<long long>:: setFromString(const char *strval) { - if (sscanf(strval, "%llu", &m_value) != 1) + if (sscanf(strval, "%lld", &m_value) != 1) setDefaultValue(); }