diff --git a/src/RpcHandle.cpp b/src/RpcHandle.cpp
index 05d5a61fe2855e2c06bfb02f46855b4db4fbc462..59434e9bfcc0710bf8d817bfc7c579329fc15192 100644
--- a/src/RpcHandle.cpp
+++ b/src/RpcHandle.cpp
@@ -105,7 +105,7 @@ bool RPCHandle::connected()
 
 int RPCHandle::split_rpccall(const char *call, char* fam, char *mem, char* act, char* mode)
 {
-	unsigned int i = 0, delim1, delim2, delim3;
+    int i = 0, delim1, delim2, delim3;
 	int underline_cnt = 0;
 	int calllen = strlen(call);