commitmonitor Code
Monitor your SVN repositories and notifies you on new commits
Brought to you by:
steveking
changed | /trunk/src/SerializeUtils.cpp |
--- a/trunk/src/SerializeUtils.cpp +++ b/trunk/src/SerializeUtils.cpp @@ -81,10 +81,10 @@ SerializeTypes type = SerializeType_String; if (fwrite(&type, sizeof(type), 1, hFile)) { - size_t length = str.size(); + int length = (int)str.size(); if (fwrite(&length, sizeof(length), 1, hFile)) { - if (fwrite(str.c_str(), sizeof(char), length, hFile)>=length) + if (fwrite(str.c_str(), sizeof(char), length, hFile)>=(size_t)length) return true; } }