Codechange: replace ClampToI32/U16 with ClampTo<int32_t/uint16_t>

This commit is contained in:
Rubidium
2023-04-29 09:25:51 +02:00
committed by rubidium42
parent 969a3dc0f3
commit 19ec4e8beb
10 changed files with 67 additions and 98 deletions

View File

@@ -99,7 +99,7 @@ struct FileStringReader : StringReader {
char *ReadLine(char *buffer, const char *last) override
{
return fgets(buffer, ClampToU16(last - buffer + 1), this->fh);
return fgets(buffer, ClampTo<uint16_t>(last - buffer + 1), this->fh);
}
void HandlePragma(char *str) override;