Fixed warning "this statement may fall through" (issue #539)

This commit is contained in:
Benoit Blanchon
2017-07-14 11:14:50 +02:00
parent d41f7a8165
commit 2772e66064
3 changed files with 6 additions and 0 deletions

View File

@ -26,8 +26,11 @@ inline T parseFloat(const char* s) {
switch (*s) {
case '-':
negative_result = true;
s++;
break;
case '+':
s++;
break;
}
if (*s == 't') return 1; // true

View File

@ -26,6 +26,8 @@ T parseInteger(const char *s) {
switch (*s) {
case '-':
negative_result = true;
s++;
break;
case '+':
s++;
break;