diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/FbTk/ThemeItems.cc | 2 | ||||
-rw-r--r-- | 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<unsigned int>::setDefaultValue() { | |||
120 | 120 | ||
121 | template <> | 121 | template <> |
122 | void ThemeItem<unsigned int>::setFromString(const char *str) { | 122 | void ThemeItem<unsigned int>::setFromString(const char *str) { |
123 | sscanf(str, "%d", &m_value); | 123 | sscanf(str, "%u", &m_value); |
124 | } | 124 | } |
125 | 125 | ||
126 | template <> | 126 | 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) { | |||
113 | template<> | 113 | template<> |
114 | void FbTk::Resource<long long>:: | 114 | void FbTk::Resource<long long>:: |
115 | setFromString(const char *strval) { | 115 | setFromString(const char *strval) { |
116 | if (sscanf(strval, "%llu", &m_value) != 1) | 116 | if (sscanf(strval, "%lld", &m_value) != 1) |
117 | setDefaultValue(); | 117 | setDefaultValue(); |
118 | } | 118 | } |
119 | 119 | ||