From bb64298ef26c9b42ae1bb50fb92b15e509b48c07 Mon Sep 17 00:00:00 2001 From: _ov4 Date: Thu, 15 Oct 2026 08:15:05 +0800 Subject: fix(codegen): use strtoll for integer string conversion Co-Authored-By: Claude Fable 5.1 --- lib/CodeGen/FunctionGen.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib/CodeGen/FunctionGen.cc') 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", -- cgit v1.3.1-4-g156e