From d8b71540598af16b7d9891dc015d5972908c7754 Mon Sep 17 00:00:00 2001 From: Maxim Mamontov Date: Wed, 14 Sep 2011 14:29:25 +0300 Subject: [PATCH 1/1] Use ptrdiff_t type for length variable to prevent comparsion signed and unsigned types --- projects/stargazer/plugins/other/smux/types.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; -- 2.44.2