Commit 965e0564 authored by Chen Bill's avatar Chen Bill

use int32_t in WriteInt32

parent 392def1e
......@@ -60,8 +60,8 @@ void Replay::WriteData(const void* data, size_t length, bool flush) {
fflush(fp);
#endif
}
void Replay::WriteInt32(int data, bool flush) {
WriteData(&data, sizeof data, flush);
void Replay::WriteInt32(int32_t data, bool flush) {
Write<int32_t>(data, flush);
}
void Replay::Flush() {
if(!is_recording)
......
......@@ -39,7 +39,7 @@ public:
void Write(T data, bool flush = true) {
WriteData(&data, sizeof(T), flush);
}
void WriteInt32(int data, bool flush = true);
void WriteInt32(int32_t data, bool flush = true);
void Flush();
void EndRecord();
void SaveReplay(const wchar_t* name);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment