summaryrefslogtreecommitdiff
path: root/emulators/gxemul/patches/patch-aa
diff options
context:
space:
mode:
Diffstat (limited to 'emulators/gxemul/patches/patch-aa')
-rw-r--r--emulators/gxemul/patches/patch-aa13
1 files changed, 13 insertions, 0 deletions
diff --git a/emulators/gxemul/patches/patch-aa b/emulators/gxemul/patches/patch-aa
new file mode 100644
index 00000000000..c98f7b05fdd
--- /dev/null
+++ b/emulators/gxemul/patches/patch-aa
@@ -0,0 +1,13 @@
+$NetBSD: patch-aa,v 1.9 2010/07/02 14:41:50 joerg Exp $
+
+--- src/main/fileloaders/FileLoader_aout.cc.orig 2010-07-02 14:06:41.000000000 +0000
++++ src/main/fileloaders/FileLoader_aout.cc
+@@ -265,7 +265,7 @@ bool FileLoader_aout::LoadIntoComponent(
+
+ off_t oldpos = file.tellg();
+ file.seekg(0, std::ios_base::end);
+- int strings_len = file.tellg() - oldpos;
++ int strings_len = (off_t)file.tellg() - oldpos;
+ file.seekg(oldpos, std::ios_base::beg);
+
+ messages.flags(std::ios::dec);