浏览代码

uac: use signed char (minor fix)

On some platform/compiler combination char can be unsigned by
default (e.g. gcc arm and ppc) => use signed char when comparing
it with 0.
Andrei Pelinescu-Onciul 16 年之前
父节点
当前提交
a5af9eccf8
共有 2 个文件被更改,包括 2 次插入2 次删除
  1. 1 1
      modules_k/uac/from.c
  2. 1 1
      modules_s/uac/from.c

+ 1 - 1
modules_k/uac/from.c

@@ -123,7 +123,7 @@ static inline int decode_from( str *src , str *dst)
 	int idx;
 	int end;
 	int i,j;
-	char c;
+	signed char c;
 
 	/* Count '-' at end and disregard them */
 	for( n=0,i=src->len-1; src->s[i]=='-'; i--)

+ 1 - 1
modules_s/uac/from.c

@@ -110,7 +110,7 @@ static inline int decode_from( str *src , str *dst)
 	int idx;
 	int end;
 	int i,j;
-	char c;
+	signed char c;
 
 	/* Count '-' at end and disregard them */
 	for( n=0,i=src->len-1; src->s[i]=='-'; i--)