diff options
Diffstat (limited to 'games-arcade/snake3d/files/snake3d-0.9-amd64.patch')
-rw-r--r-- | games-arcade/snake3d/files/snake3d-0.9-amd64.patch | 37 |
1 files changed, 0 insertions, 37 deletions
diff --git a/games-arcade/snake3d/files/snake3d-0.9-amd64.patch b/games-arcade/snake3d/files/snake3d-0.9-amd64.patch deleted file mode 100644 index d2b5f2c79acd..000000000000 --- a/games-arcade/snake3d/files/snake3d-0.9-amd64.patch +++ /dev/null @@ -1,37 +0,0 @@ ---- src/functions.cpp.old 2007-03-31 11:04:10.000000000 +0200 -+++ src/functions.cpp 2007-03-31 11:11:52.000000000 +0200 -@@ -107,8 +107,8 @@ - pointer = end; - } - -- memcpy(str, i, (int)pointer - (int)i); -- str[(int)pointer - (int)i] = 0; -+ memcpy(str, i, ssize_t(pointer - i)); -+ str[pointer - i] = 0; - - drawString(x, y, str); - -@@ -501,15 +501,21 @@ - - Uint32 timer(Uint32 interval, void* value) { - -+ union { -+ void *value; -+ int p_mode; -+ } p_modeConv; -+ p_modeConv.value = value; -+ - //if ((int)value != gameModeValue) -- if ((int)value != p_mode) -+ if (p_modeConv.p_mode != p_mode) - return 0; - - SDL_Event event; - SDL_UserEvent userevent; - - userevent.type = SDL_USEREVENT; -- userevent.code = (int)value; -+ userevent.code = p_modeConv.p_mode; - userevent.data1 = NULL; - userevent.data2 = NULL; - |