refactor switch with default

This commit is contained in:
Francois Perrad 2017-06-22 17:13:05 +02:00
parent 1725b87098
commit 446fec1bc4
2 changed files with 2 additions and 2 deletions

View File

@ -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 {\

View File

@ -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) \