소스 검색

don't index arrays with signed types

Sergey Alirzaev 5 년 전
부모
커밋
6abcf553ac
1개의 변경된 파일1개의 추가작업 그리고 2개의 파일을 삭제
  1. 1 2
      modules/Ethernet/private_mib_bt6709.c

+ 1 - 2
modules/Ethernet/private_mib_bt6709.c

@@ -295,12 +295,11 @@ void lwip_privmib_init(void)
 uint32_t check_netsettings(char *addr, uint8_t len)
 {
 	uint32_t val = 0;
-	char c;
 	uint8_t i, j;
 	uint8_t cnt_dot = 0;
 	uint8_t digit = 0;
 
-	c = *addr;
+	uint8_t c = *addr;
 
 	for(j = 0; j <= len; j ++){
 		if (isdigit(c)) {