mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 03:37:45 +00:00
LibC: Make scanf
read an unsigned long
when using %lu
This commit is contained in:
parent
a880457380
commit
cead476816
1 changed files with 1 additions and 1 deletions
|
@ -270,7 +270,7 @@ struct ReadElement {
|
|||
if constexpr (IsSame<T, int>)
|
||||
return ReadElementConcrete<T, long, kind> {}(input_lexer, ap, suppress_assignment);
|
||||
if constexpr (IsSame<T, unsigned>)
|
||||
return ReadElementConcrete<T, unsigned, kind> {}(input_lexer, ap, suppress_assignment);
|
||||
return ReadElementConcrete<T, unsigned long, kind> {}(input_lexer, ap, suppress_assignment);
|
||||
if constexpr (IsSame<T, float>)
|
||||
return ReadElementConcrete<int, double, kind> {}(input_lexer, ap, suppress_assignment);
|
||||
return false;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue