From 7611c488c2d06a6bdbe5f7b26a47e15f1bd55eb8 Mon Sep 17 00:00:00 2001 From: Raphael Kubo da Costa Date: Fri, 4 Dec 2015 14:10:45 -0200 Subject: [PATCH] Use time_t to store time data. This fixes the build on 32-bit FreeBSD releases, which were failing like this: src/CReplayData.cpp: In member function 'void ReplayData::printReplayInformation()': src/CReplayData.cpp:41: error: invalid conversion from 'long int*' to 'const time_t*' src/CReplayData.cpp:41: error: initializing argument 1 of 'tm* localtime(const time_t*)' --- src/CReplayDataHeader.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/CReplayDataHeader.h b/src/CReplayDataHeader.h index 9d7c1b3..db7d5a1 100644 --- a/src/CReplayDataHeader.h +++ b/src/CReplayDataHeader.h @@ -1,7 +1,7 @@ struct ReplayDataHeader { char map[PATH_MAX]; - long randomSeed; + time_t randomSeed; float version; int release; int skill; -- 2.39.5