diff --git a/desmume/src/movie.cpp b/desmume/src/movie.cpp index 6df7487db..02591433a 100644 --- a/desmume/src/movie.cpp +++ b/desmume/src/movie.cpp @@ -228,7 +228,7 @@ void MovieData::installValue(std::string& key, std::string& val) guid = Desmume_Guid::fromString(val); else if(key == "rtcStart") { // sloppy format check and parse - char *validFormatStr = "####-##-##T##:##:##Z"; + const char *validFormatStr = "####-##-##T##:##:##Z"; bool validFormat = true; for (int i = 0; validFormatStr[i] != '\0'; i++) { if (validFormatStr[i] != val[i] && diff --git a/desmume/src/movie.h b/desmume/src/movie.h index 8730b3d92..3a01027e5 100644 --- a/desmume/src/movie.h +++ b/desmume/src/movie.h @@ -129,7 +129,7 @@ public: int rerecordCount; Desmume_Guid guid; - s64 rtcStart; // (time_t) it always means gmtime, not localtime. + time_t rtcStart; // (time_t) it always means gmtime, not localtime. //was the frame data stored in binary? bool binaryFlag;