Commit 8cdaf314 authored by Chen Bill's avatar Chen Bill

use int32_t in ReadInt32

parent e147da02
...@@ -214,8 +214,8 @@ bool Replay::ReadData(void* data, size_t length) { ...@@ -214,8 +214,8 @@ bool Replay::ReadData(void* data, size_t length) {
data_position += length; data_position += length;
return true; return true;
} }
int Replay::ReadInt32() { int32_t Replay::ReadInt32() {
return ReadValue<int32_t>(); return Read<int32_t>();
} }
void Replay::Rewind() { void Replay::Rewind() {
data_position = 0; data_position = 0;
......
...@@ -59,7 +59,7 @@ public: ...@@ -59,7 +59,7 @@ public:
ReadData(&ret, sizeof(T)); ReadData(&ret, sizeof(T));
return ret; return ret;
} }
int ReadInt32(); int32_t ReadInt32();
void Rewind(); void Rewind();
FILE* fp{ nullptr }; FILE* fp{ nullptr };
......
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