summaryrefslogtreecommitdiff
path: root/debian/patches/0002-Fix-code-which-needed-a-32-bit-int-to-not-use-int-lo.patch
diff options
context:
space:
mode:
authorManoj Srivastava <srivasta@debian.org>2016-01-27 10:45:26 -0800
committerManoj Srivastava <srivasta@debian.org>2016-01-27 11:57:45 -0800
commit2a61dffe127e22c1aaf955db6f085ac2eefbebba (patch)
treef8f912c401c488b8725ae317465e1cce20cf2ea6 /debian/patches/0002-Fix-code-which-needed-a-32-bit-int-to-not-use-int-lo.patch
parent4905804702227b75ed1cb1b6a9bd5b816a8c772b (diff)
Packaging cleanupdebian/2.3.11-ah-3
Git development has moved to github, moved away from lua to C++, and made a tonne of changes. This release is just making a few cleanups to prepare for the major update. Signed-off-by: Manoj Srivastava <srivasta@debian.org>
Diffstat (limited to 'debian/patches/0002-Fix-code-which-needed-a-32-bit-int-to-not-use-int-lo.patch')
-rw-r--r--debian/patches/0002-Fix-code-which-needed-a-32-bit-int-to-not-use-int-lo.patch58
1 files changed, 0 insertions, 58 deletions
diff --git a/debian/patches/0002-Fix-code-which-needed-a-32-bit-int-to-not-use-int-lo.patch b/debian/patches/0002-Fix-code-which-needed-a-32-bit-int-to-not-use-int-lo.patch
deleted file mode 100644
index 3cc54503..00000000
--- a/debian/patches/0002-Fix-code-which-needed-a-32-bit-int-to-not-use-int-lo.patch
+++ /dev/null
@@ -1,58 +0,0 @@
-From 448e655d55608b18ed6e8e387d5f9c86356900c8 Mon Sep 17 00:00:00 2001
-From: Manoj Srivastava <srivasta@debian.org>
-Date: Tue, 21 Oct 2008 08:25:47 -0500
-Subject: [PATCH 2/3] Fix code which needed a 32 bit int to not use int/long
-
-On amd64, but not on i386, tome produces LUA errors at various
-times. The errors occur at savefile load, when wileding a weapon,
-unweilding a weapon, and for other events. The same homedir, same
-savefiles, same config, same etc., does not produce errors in the
-32bit build of the package.
-
-The error seems to be that the type Number needs to be a 32bit wide
-integer; and seems to be defined by default as an long, with an option
-to define it as an int for amd64. However, for the 11 arches Debian
-supports, this would lead to a morass of selecting architectures in
-the makefile to override the type; a better solution is to use
-stdint.h and use a type which is 32 bits wide by design: int32_t.
-
-This fixes the LUA errors, and Closes: Bug#419825
-
-Signed-off-by: Manoj Srivastava <srivasta@debian.org>
----
- src/lua/llimits.h | 5 +++--
- 1 file changed, 3 insertions(+), 2 deletions(-)
-
-diff --git a/src/lua/llimits.h b/src/lua/llimits.h
-index 4b12450..39a1e0d 100644
---- a/src/lua/llimits.h
-+++ b/src/lua/llimits.h
-@@ -10,6 +10,7 @@
-
- #include <limits.h>
- #include <stddef.h>
-+#include <stdint.h>
-
-
-
-@@ -36,7 +37,7 @@
- ** GREP LUA_NUMBER to change that
- */
- #ifndef LUA_NUM_TYPE
--#define LUA_NUM_TYPE long
-+#define LUA_NUM_TYPE int32_t
- #endif
-
- typedef LUA_NUM_TYPE Number;
-@@ -50,7 +51,7 @@ typedef LUA_NUM_TYPE Number;
-
-
-
--typedef unsigned long lint32; /* unsigned int with at least 32 bits */
-+typedef int_least32_t lint32; /* unsigned int with at least 32 bits */
-
-
- #define MAX_SIZET ((size_t)(~(size_t)0)-2)
---
-2.0.0.rc2
-