refactor switch with default
This commit is contained in:
parent
1725b87098
commit
446fec1bc4
@ -29,8 +29,8 @@ static int _char_to_int(unsigned char x)
|
||||
case '7': return 7;
|
||||
case '8': return 8;
|
||||
case '9': return 9;
|
||||
default: return 100;
|
||||
}
|
||||
return 100;
|
||||
}
|
||||
|
||||
#define DECODE_V(y, max) do {\
|
||||
|
@ -28,8 +28,8 @@ static int _char_to_int(unsigned char x)
|
||||
case '7': return 7;
|
||||
case '8': return 8;
|
||||
case '9': return 9;
|
||||
default: return 100;
|
||||
}
|
||||
return 100;
|
||||
}
|
||||
|
||||
#define DECODE_V(y, max) \
|
||||
|
Loading…
Reference in New Issue
Block a user