libftdi-git Archives

Subject: A library to talk to FTDI chips branch, master, updated. v1.0-13-g9e44fc9

From: libftdi-git@xxxxxxxxxxxxxxxxxxxxxxx
To: libftdi-git@xxxxxxxxxxxxxxxxxxxxxxx
Date: Wed, 10 Apr 2013 10:14:14 +0200 (CEST)
The branch, master has been updated
       via  9e44fc94ea5ffe94cc4eaf8d58f55af41f3cef97 (commit)
      from  3bc0387ed13b23a14c1012d37c2a926218c9f9f7 (commit)


- Log -----------------------------------------------------------------
commit 9e44fc94ea5ffe94cc4eaf8d58f55af41f3cef97
Author: Nathael Pajani <nathael.pajani@xxxxxxx>
Date:   Wed Apr 10 10:14:08 2013 +0200

    Remove compiler warnings on signed comparison

-----------------------------------------------------------------------

Summary of changes:
 src/ftdi.c |    6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/src/ftdi.c b/src/ftdi.c
index ccbb487..9cf86ea 100644
--- a/src/ftdi.c
+++ b/src/ftdi.c
@@ -1542,7 +1542,7 @@ struct ftdi_transfer_control 
*ftdi_write_data_submit(struct ftdi_context *ftdi,
     tc->size = size;
     tc->offset = 0;
 
-    if (size < ftdi->writebuffer_chunksize)
+    if (size < (int)ftdi->writebuffer_chunksize)
         write_size = size;
     else
         write_size = ftdi->writebuffer_chunksize;
@@ -1595,7 +1595,7 @@ struct ftdi_transfer_control 
*ftdi_read_data_submit(struct ftdi_context *ftdi, u
     tc->buf = buf;
     tc->size = size;
 
-    if (size <= ftdi->readbuffer_remaining)
+    if (size <= (int)ftdi->readbuffer_remaining)
     {
         memcpy (buf, ftdi->readbuffer+ftdi->readbuffer_offset, size);
 
@@ -1759,7 +1759,7 @@ int ftdi_read_data(struct ftdi_context *ftdi, unsigned 
char *buf, int size)
         ftdi_error_return(-1, "max_packet_size is bogus (zero)");
 
     // everything we want is still in the readbuffer?
-    if (size <= ftdi->readbuffer_remaining)
+    if (size <= (int)ftdi->readbuffer_remaining)
     {
         memcpy (buf, ftdi->readbuffer+ftdi->readbuffer_offset, size);
 


hooks/post-receive
-- 
A library to talk to FTDI chips

--
libftdi-git - see http://www.intra2net.com/en/developer/libftdi for details.
To unsubscribe send a mail to libftdi-git+unsubscribe@xxxxxxxxxxxxxxxxxxxxxxx   

Current Thread
  • A library to talk to FTDI chips branch, master, updated. v1.0-13-g9e44fc9, libftdi-git <=