compile fix: use the correct format string to parse the number
This commit is contained in:
parent
e8c2690bfc
commit
f8c61a1ba2
2 changed files with 2 additions and 2 deletions
|
@ -120,7 +120,7 @@ void ThemeItem<unsigned int>::setDefaultValue() {
|
|||
|
||||
template <>
|
||||
void ThemeItem<unsigned int>::setFromString(const char *str) {
|
||||
sscanf(str, "%d", &m_value);
|
||||
sscanf(str, "%u", &m_value);
|
||||
}
|
||||
|
||||
template <>
|
||||
|
|
|
@ -113,7 +113,7 @@ setFromString(const char *strval) {
|
|||
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();
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue