summaryrefslogtreecommitdiff
path: root/src/table
diff options
context:
space:
mode:
authorsmatz <smatz@openttd.org>2010-11-10 19:54:20 +0000
committersmatz <smatz@openttd.org>2010-11-10 19:54:20 +0000
commitb8cb654adcc280303b6e442b7c476968996efa88 (patch)
tree9d21a74b924d8eab244190b04ea6484b02927bc2 /src/table
parent1ddc05e822387a4dfc8c902e0e88ab59f97923b7 (diff)
downloadopenttd-b8cb654adcc280303b6e442b7c476968996efa88.tar.xz
(svn r21135) -Fix (r19870): silencing gcc 3.3 warnings caused gcc 4.0 to warn
Diffstat (limited to 'src/table')
-rw-r--r--src/table/settings.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/table/settings.h b/src/table/settings.h
index d27f509ac..61653e746 100644
--- a/src/table/settings.h
+++ b/src/table/settings.h
@@ -93,7 +93,7 @@ static bool UpdateClientConfigValues(int32 p1);
*/
#define NSD_GENERAL(name, def, cmd, guiflags, min, max, interval, many, str, proc, load)\
- {name, (const void*)(ptrdiff_t)(def), {(byte)cmd}, {(uint16)guiflags}, min, max, interval, many, str, proc, load}
+ {name, (const void*)(size_t)(def), {(byte)cmd}, {(uint16)guiflags}, min, max, interval, many, str, proc, load}
/* Macros for various objects to go in the configuration file.
* This section is for global variables */