public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-commits] gentoo-x86 commit in games-emulation/gngb/files: gngb-20060309-ovflfix.patch
@ 2010-10-28 12:46 Alfredo Tupone (tupone)
  0 siblings, 0 replies; only message in thread
From: Alfredo Tupone (tupone) @ 2010-10-28 12:46 UTC (permalink / raw
  To: gentoo-commits

tupone      10/10/28 12:46:57

  Added:                gngb-20060309-ovflfix.patch
  Log:
  Fix gcc-4.5 overflow warning. Bug #340196
  
  (Portage version: 2.1.9.22/cvs/Linux i686)

Revision  Changes    Path
1.1                  games-emulation/gngb/files/gngb-20060309-ovflfix.patch

file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/games-emulation/gngb/files/gngb-20060309-ovflfix.patch?rev=1.1&view=markup
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/games-emulation/gngb/files/gngb-20060309-ovflfix.patch?rev=1.1&content-type=text/plain

Index: gngb-20060309-ovflfix.patch
===================================================================
--- src/serial.c.old	2010-10-28 14:40:23.000000000 +0200
+++ src/serial.c	2010-10-28 14:41:07.000000000 +0200
@@ -302,11 +302,11 @@
 /* Gbserial_read: Read a byte on the serial 
    This is a block function */
 Uint8 gbserial_read(void) {
-  Uint8 b;
+  Uint8 b[2];
 
   gbserial.ready2read=0;
-  if ((read(dest_socket,&b,2))<=0) return 0xFF;
-  return b;
+  if ((read(dest_socket,b,2))<=0) return 0xFF;
+  return b[0];
 }
 
 /* Gbserial_write: Write a byte on the serial 






^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2010-10-28 12:47 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-10-28 12:46 [gentoo-commits] gentoo-x86 commit in games-emulation/gngb/files: gngb-20060309-ovflfix.patch Alfredo Tupone (tupone)

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox