From: Maxim Mamontov Date: Wed, 14 Sep 2011 11:29:25 +0000 (+0300) Subject: Use ptrdiff_t type for length variable to prevent comparsion signed and X-Git-Tag: 2.408-rc1~69 X-Git-Url: https://git.stg.codes/stg.git/commitdiff_plain/d8b71540598af16b7d9891dc015d5972908c7754?ds=sidebyside Use ptrdiff_t type for length variable to prevent comparsion signed and unsigned types --- diff --git a/projects/stargazer/plugins/other/smux/types.cpp b/projects/stargazer/plugins/other/smux/types.cpp index 14117ce5..f9c5eb50 100644 --- a/projects/stargazer/plugins/other/smux/types.cpp +++ b/projects/stargazer/plugins/other/smux/types.cpp @@ -5,7 +5,7 @@ #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;