hexTo64l() should convert it to an unsigned value on Linux

This commit is contained in:
Micke Prag 2012-02-03 11:17:36 +01:00
parent 72e480a870
commit e718228a12

View file

@ -150,7 +150,7 @@ uint64_t TelldusCore::hexTo64l(const std::string data){
#elif defined(_MACOSX)
return strtoq(data.c_str(), NULL, 16);
#else
return strtol(data.c_str(), NULL, 16);
return strtoul(data.c_str(), NULL, 16);
#endif
}