Skip to content
Snippets Groups Projects
Commit 2cd08aeb authored by rswindell's avatar rswindell
Browse files

Don't write "bytes" value as a floating point in iniSetBytes().

parent 9cbd24cb
No related branches found
No related tags found
No related merge requests found
...@@ -445,7 +445,7 @@ char* iniSetBytes(str_list_t* list, const char* section, const char* key, ulong ...@@ -445,7 +445,7 @@ char* iniSetBytes(str_list_t* list, const char* section, const char* key, ulong
else if(fmod(bytes,1024)==0) else if(fmod(bytes,1024)==0)
SAFEPRINTF(str,"%gK",bytes/1024); SAFEPRINTF(str,"%gK",bytes/1024);
else else
SAFEPRINTF(str,"%g",bytes); SAFEPRINTF(str,"%lu",(ulong)bytes);
} }
return iniSetString(list, section, key, str, style); return iniSetString(list, section, key, str, style);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment