]> git.stg.codes - stg.git/commitdiff
Use ptrdiff_t type for length variable to prevent comparsion signed and
authorMaxim Mamontov <faust.madf@gmail.com>
Wed, 14 Sep 2011 11:29:25 +0000 (14:29 +0300)
committerMaxim Mamontov <faust.madf@gmail.com>
Wed, 14 Sep 2011 11:29:25 +0000 (14:29 +0300)
unsigned types

projects/stargazer/plugins/other/smux/types.cpp

index 14117ce5c1ee7e9796a0ca64a652a89ea09b4ed7..f9c5eb50a2a1384705b5a9a9f28324b650d2dc53 100644 (file)
@@ -5,7 +5,7 @@
 
 #include "types.h"
 
 
 #include "types.h"
 
-bool ParseArcs(const char * str, size_t length, unsigned * a, size_t * pos)
+bool ParseArcs(const char * str, ptrdiff_t length, unsigned * a, size_t * pos)
 {
 if (length == 0)
     return false;
 {
 if (length == 0)
     return false;