mirror of
https://github.com/Microsoft/calculator.git
synced 2025-08-22 14:13:30 -07:00
Add explicit [[fallthrough]] attributes in Ratpack
This commit is contained in:
parent
b8b0fdf86b
commit
78aab3767c
1 changed files with 2 additions and 1 deletions
|
@ -612,6 +612,7 @@ PNUMBER StringToNumber(wstring_view numberString, uint32_t radix, int32_t precis
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
// Drop through in the 'e'-as-a-digit case
|
// Drop through in the 'e'-as-a-digit case
|
||||||
|
[[fallthrough]];
|
||||||
default:
|
default:
|
||||||
state = machine[state][NZ];
|
state = machine[state][NZ];
|
||||||
break;
|
break;
|
||||||
|
@ -646,7 +647,7 @@ PNUMBER StringToNumber(wstring_view numberString, uint32_t radix, int32_t precis
|
||||||
break;
|
break;
|
||||||
case LD:
|
case LD:
|
||||||
pnumret->exp++;
|
pnumret->exp++;
|
||||||
// Fall through
|
[[fallthrough]];
|
||||||
case DD:
|
case DD:
|
||||||
{
|
{
|
||||||
curChar = NormalizeCharDigit(curChar, radix);
|
curChar = NormalizeCharDigit(curChar, radix);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue