summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--runtime/stringbuf.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/runtime/stringbuf.c b/runtime/stringbuf.c
index 6079e685..97bfed40 100644
--- a/runtime/stringbuf.c
+++ b/runtime/stringbuf.c
@@ -543,7 +543,7 @@ rsRetVal cstrTrimTrailingWhiteSpace(cstr_t *pThis)
--i;
}
/* i now is the new string length! */
- if(i != pThis->iStrLen) {
+ if(i != (int) pThis->iStrLen) {
pThis->iStrLen = i;
pThis->pBuf[pThis->iStrLen] = '\0'; /* we always have this space */
}