summaryrefslogtreecommitdiff
path: root/src/script
diff options
context:
space:
mode:
authorrubidium <rubidium@openttd.org>2014-05-11 20:16:37 +0000
committerrubidium <rubidium@openttd.org>2014-05-11 20:16:37 +0000
commit39e90ec6e01f56cea5923de2da05d7467bef20ab (patch)
tree68a5fa377c2bf12082f455ead2c10fce63513558 /src/script
parent6e99a559285947ef76f856c2b541a22562bd5457 (diff)
downloadopenttd-39e90ec6e01f56cea5923de2da05d7467bef20ab.tar.xz
(svn r26584) -Codechange: [Squirrel] Make the internal integer for scripts always 64 bits, so scripts behave the same on 32 or 64 bits architectures
Diffstat (limited to 'src/script')
-rw-r--r--src/script/squirrel.cpp6
1 files changed, 1 insertions, 5 deletions
diff --git a/src/script/squirrel.cpp b/src/script/squirrel.cpp
index aa25166b7..7b80b24b6 100644
--- a/src/script/squirrel.cpp
+++ b/src/script/squirrel.cpp
@@ -31,11 +31,7 @@ void Squirrel::CompileError(HSQUIRRELVM vm, const SQChar *desc, const SQChar *so
{
SQChar buf[1024];
-#ifdef _SQ64
- scsnprintf(buf, lengthof(buf), _SC("Error %s:%ld/%ld: %s"), source, line, column, desc);
-#else
- scsnprintf(buf, lengthof(buf), _SC("Error %s:%d/%d: %s"), source, line, column, desc);
-#endif
+ scsnprintf(buf, lengthof(buf), _SC("Error %s:") SQ_PRINTF64 _SC("/") SQ_PRINTF64 _SC(": %s"), source, line, column, desc);
/* Check if we have a custom print function */
Squirrel *engine = (Squirrel *)sq_getforeignptr(vm);