CVS: libraries/mspgcc ringbuffer_get.c,1.1,1.2
Chris Liechti <[email protected]> Wed, 14 May 2008 18:04:07 -0700
| Newsgroups | gmane.comp.hardware.texas-instruments.msp430.gcc.cvs |
|---|---|
| Message-ID | <[email protected]> |
Update of /cvsroot/mspgcc/libraries/mspgcc
In directory sc8-pr-cvs16.sourceforge.net:/tmp/cvs-serv14212/mspgcc
Modified Files:
ringbuffer_get.c
Log Message:
fix for values >127
Index: ringbuffer_get.c
===================================================================
RCS file: /cvsroot/mspgcc/libraries/mspgcc/ringbuffer_get.c,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -w -d -r1.1 -r1.2
--- ringbuffer_get.c 22 Aug 2005 11:23:20 -0000 1.1
+++ ringbuffer_get.c 15 May 2008 01:04:03 -0000 1.2
@@ -11,7 +11,7 @@
//update size info
buffer->fill--;
//get byte from buffer, update read position and return
- return buffer->memory[buffer->read_pos++];
+ return (unsigned char)(buffer->memory[buffer->read_pos++]);
} else {
return -1;
}
-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/