compile fix: use the correct format string to parse the number

This commit is contained in:
Mathias Gumz 2009-09-30 21:05:02 +02:00
parent e8c2690bfc
commit f8c61a1ba2
2 changed files with 2 additions and 2 deletions

View file

@ -120,7 +120,7 @@ void ThemeItem<unsigned int>::setDefaultValue() {
template <> template <>
void ThemeItem<unsigned int>::setFromString(const char *str) { void ThemeItem<unsigned int>::setFromString(const char *str) {
sscanf(str, "%d", &m_value); sscanf(str, "%u", &m_value);
} }
template <> template <>

View file

@ -113,7 +113,7 @@ setFromString(const char *strval) {
template<> template<>
void FbTk::Resource<long long>:: void FbTk::Resource<long long>::
setFromString(const char *strval) { setFromString(const char *strval) {
if (sscanf(strval, "%llu", &m_value) != 1) if (sscanf(strval, "%lld", &m_value) != 1)
setDefaultValue(); setDefaultValue();
} }