diff options
| author | _ov4 <ov4@ov4.org> | 2026-10-15 08:15:05 +0800 |
|---|---|---|
| committer | _ov4 <ov4@ov4.org> | 2026-10-15 08:15:05 +0800 |
| commit | bb64298ef26c9b42ae1bb50fb92b15e509b48c07 (patch) | |
| tree | ff5227ff1d0685a3fd706c807f9ebef26a10ab21 /lib/CodeGen/FunctionGen.cc | |
| parent | b8c4b7040e222af1522b31a8739e679dacf87e03 (diff) | |
fix(codegen): use strtoll for integer string conversion
Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
Diffstat (limited to 'lib/CodeGen/FunctionGen.cc')
| -rw-r--r-- | lib/CodeGen/FunctionGen.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/CodeGen/FunctionGen.cc b/lib/CodeGen/FunctionGen.cc index 9ccd8af..978970a 100644 --- a/lib/CodeGen/FunctionGen.cc +++ b/lib/CodeGen/FunctionGen.cc @@ -11,7 +11,7 @@ using namespace cps; static bool isReservedRuntimeName(const std::string &Name) { static const char *Reserved[] = { "main", "printf", "scanf", "malloc", "free", "strlen", "memcpy", - "strcpy", "strcat", "toupper", "tolower", "sprintf", "strtol", + "strcpy", "strcat", "toupper", "tolower", "sprintf", "strtol", "strtoll", "strtod", "memset", "exit", "fopen", "fclose", "fgetc", "ungetc", "fputs", "fputc", "realloc", "strcmp", "__cxa_allocate_exception", "__cxa_throw", |
