{
#ifdef WIN32
return MoveFileExA(src.string().c_str(), dest.string().c_str(),
- MOVEFILE_REPLACE_EXISTING);
+ MOVEFILE_REPLACE_EXISTING) != 0;
#else
int rc = std::rename(src.string().c_str(), dest.string().c_str());
return (rc == 0);
{
// Restart the file with some of the end
char pch[200000];
- fseek(file, (long long)-sizeof(pch), SEEK_END);
+ fseek(file, -((long long)sizeof(pch)), SEEK_END);
int nBytes = fread(pch, 1, sizeof(pch), file);
fclose(file);