]> git.pld-linux.org Git - packages/libextractor.git/commitdiff
- fix for 64-bit mode.
authorPaweł Sikora <pluto@pld-linux.org>
Sun, 19 Feb 2006 10:45:29 +0000 (10:45 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
Changed files:
    libextractor-64bit.patch -> 1.1

libextractor-64bit.patch [new file with mode: 0644]

diff --git a/libextractor-64bit.patch b/libextractor-64bit.patch
new file mode 100644 (file)
index 0000000..465f809
--- /dev/null
@@ -0,0 +1,24 @@
+pack.c: In function 'cat_unpack':
+pack.c:407: warning: left shift count >= width of type
+pack.c:423: warning: left shift count >= width of type
+
+--- libextractor-0.5.9/src/plugins/pack.c.orig 2005-09-18 11:54:35.000000000 +0200
++++ libextractor-0.5.9/src/plugins/pack.c      2006-02-19 11:44:07.330679750 +0100
+@@ -404,7 +404,7 @@
+       *swordp |= *bp++ << 24;
+       
+       if ( (sizeof(swordp) > 4) && (*swordp & 0x80000000) )
+-        *swordp |= (~0) << ((sizeof(sword)-4) * 8);
++        *swordp |= (~0L) << ((sizeof(sword)-4) * 8);
+       
+       ++swordp;
+       npacked += 4;
+@@ -420,7 +420,7 @@
+       *swordp |= *bp++;
+       
+       if ( (sizeof(swordp) > 4) && (*swordp & 0x80000000) )
+-        *swordp |= (~0) << ((sizeof(sword)-4) * 8);
++        *swordp |= (~0L) << ((sizeof(sword)-4) * 8);
+       
+       ++swordp;
+       npacked += 4;
This page took 0.202624 seconds and 4 git commands to generate.