From f8c61a1ba2cc5fc08690b89440cb2f0380f068df Mon Sep 17 00:00:00 2001 From: Mathias Gumz Date: Wed, 30 Sep 2009 21:05:02 +0200 Subject: compile fix: use the correct format string to parse the number --- src/FbTk/ThemeItems.cc | 2 +- src/Resources.cc | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/FbTk/ThemeItems.cc b/src/FbTk/ThemeItems.cc index b4e7096..56efb1b 100644 --- a/src/FbTk/ThemeItems.cc +++ b/src/FbTk/ThemeItems.cc @@ -120,7 +120,7 @@ void ThemeItem::setDefaultValue() { template <> void ThemeItem::setFromString(const char *str) { - sscanf(str, "%d", &m_value); + sscanf(str, "%u", &m_value); } template <> diff --git a/src/Resources.cc b/src/Resources.cc index 20786d8..60c7461 100644 --- a/src/Resources.cc +++ b/src/Resources.cc @@ -113,7 +113,7 @@ setFromString(const char *strval) { template<> void FbTk::Resource:: setFromString(const char *strval) { - if (sscanf(strval, "%llu", &m_value) != 1) + if (sscanf(strval, "%lld", &m_value) != 1) setDefaultValue(); } -- cgit v0.11.2