LogoopenSUSE Build Service > Projects
Sign Up | Log In

View File fixcompiler.patch of Package uae (Project home:dstoecker)

diff -ur e-uae-0.8.29-WIP4/src/disk.c e-uae-0.8.29-WIP4_fixed//src/disk.c
--- e-uae-0.8.29-WIP4/src/disk.c	2006-12-16 04:50:42.000000000 +0100
+++ e-uae-0.8.29-WIP4_fixed//src/disk.c	2009-09-01 15:31:06.000000000 +0200
@@ -2122,7 +2122,7 @@
     static char buf[10];
     for ( i = 7; i >= 0; i--)
 	buf[7 - i] = v & (1 << i) ? '1' : '0';
-    buf[i] = 0;
+    buf[8] = 0;
     return buf;
 }
 
diff -ur e-uae-0.8.29-WIP4/src/fpp.c e-uae-0.8.29-WIP4_fixed//src/fpp.c
--- e-uae-0.8.29-WIP4/src/fpp.c	2007-03-26 06:53:15.000000000 +0200
+++ e-uae-0.8.29-WIP4_fixed//src/fpp.c	2009-09-01 15:33:00.000000000 +0200
@@ -109,6 +109,7 @@
 	case FPP_ROUND_UP:
 	    return (tointtype) ceil (src);
     }
+    return -1;
 }
 
 STATIC_INLINE uae_u32 get_fpsr (const struct regstruct *regs)