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;
|
||||
}
|
||||
// Drop through in the 'e'-as-a-digit case
|
||||
[[fallthrough]];
|
||||
default:
|
||||
state = machine[state][NZ];
|
||||
break;
|
||||
|
@ -646,7 +647,7 @@ PNUMBER StringToNumber(wstring_view numberString, uint32_t radix, int32_t precis
|
|||
break;
|
||||
case LD:
|
||||
pnumret->exp++;
|
||||
// Fall through
|
||||
[[fallthrough]];
|
||||
case DD:
|
||||
{
|
||||
curChar = NormalizeCharDigit(curChar, radix);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue