mirror of
https://github.com/Microsoft/calculator.git
synced 2025-08-14 02:26:50 -07:00
Add explicit [[fallthrough]] attributes in Ratpack (#323)
This commit is contained in:
parent
965e36cc5d
commit
3d18dd38c2
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