diff options
author | arved <arved@FreeBSD.org> | 2007-07-31 22:54:12 +0800 |
---|---|---|
committer | arved <arved@FreeBSD.org> | 2007-07-31 22:54:12 +0800 |
commit | 9d640df0f62485ad4605824bec5a641f81187f5e (patch) | |
tree | d92e46ac060bd27d712956872c5ec1255c0a13d6 /games | |
parent | 5fa306af2691c4bb8f4e962fd1db5d4257ef551e (diff) | |
download | freebsd-ports-gnome-9d640df0f62485ad4605824bec5a641f81187f5e.tar.gz freebsd-ports-gnome-9d640df0f62485ad4605824bec5a641f81187f5e.tar.zst freebsd-ports-gnome-9d640df0f62485ad4605824bec5a641f81187f5e.zip |
Fix compile on 64bit CPUs
Obtained from: Upstream CVS (r1.30) via Gentoo
Diffstat (limited to 'games')
-rw-r--r-- | games/exult/files/patch-usecode-useval.cc | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/games/exult/files/patch-usecode-useval.cc b/games/exult/files/patch-usecode-useval.cc new file mode 100644 index 000000000000..ed4be4a4f2da --- /dev/null +++ b/games/exult/files/patch-usecode-useval.cc @@ -0,0 +1,20 @@ +--- usecode/useval.cc.old 2006-10-25 21:43:21.000000000 +0200 ++++ usecode/useval.cc 2006-10-25 21:48:49.000000000 +0200 +@@ -464,7 +464,7 @@ + if (buflen < 5) + return -1; + *ptr++ = type; +- Write4(ptr, (int)value.ptr); ++ Write4(ptr, 0); + break; + case string_type: + { +@@ -525,7 +525,7 @@ + case pointer_type: + if (buflen < 5) + return false; +- value.ptr = (Game_object*)Read4(ptr); //DON'T dereference this pointer! ++ value.ptr = 0; //DON'T dereference this pointer! + // Maybe add a new type "serialized_pointer" to prevent "accidents"? + return true; + case string_type: |