summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHaru <haru@dotalux.com>2016-08-22 01:16:09 +0200
committerHaru <haru@dotalux.com>2016-08-22 01:16:09 +0200
commitd4266fb10d2557cfd3f56356ce867f16c86107cc (patch)
tree24f29111ed21ee6e87e7537832780e5c0835c589
parent51a9e9b3edc09ba7d266348d65f3058f6de092cf (diff)
downloadhercules-d4266fb10d2557cfd3f56356ce867f16c86107cc.tar.gz
hercules-d4266fb10d2557cfd3f56356ce867f16c86107cc.tar.bz2
hercules-d4266fb10d2557cfd3f56356ce867f16c86107cc.tar.xz
hercules-d4266fb10d2557cfd3f56356ce867f16c86107cc.zip
Temporary quick-fix for a warning in the linux builds
- libconfig uses 'long long' for its 64 bit lookup/set/get functions, rather than a well-defined size integer (such as int64_t). GCC doesn't like the use of an int64_t* where a long long* is required, especially on linux x86_64, where int64_t is typedeffed as long int - In future, the function signature will be changed, so we can use int64 normally. Signed-off-by: Haru <haru@dotalux.com>
-rw-r--r--src/char/char.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/char/char.c b/src/char/char.c
index 3e78d768f..126ddc149 100644
--- a/src/char/char.c
+++ b/src/char/char.c
@@ -5919,7 +5919,7 @@ bool char_config_read_player_new(const char *filename, const struct config_t *co
#else
const char *start_point_setting = "start_point_pre";
#endif
- int64 i64 = 0;
+ long long int i64 = 0; // TODO: Temporary until the signature of libconfig->setting_lookup_int64 is changed to take a defined-size int (int64)
nullpo_retr(false, filename);
nullpo_retr(false, config);