This commit is contained in:
lyon 2022-12-24 15:03:35 +08:00
parent 61a3707705
commit 75ce1ba5c8
3 changed files with 9 additions and 1 deletions

View File

@ -443,7 +443,11 @@ static char* __print_arg(PikaObj* self, Arg* val) {
}
if (arg_type == ARG_TYPE_INT) {
int64_t value = arg_getInt(val);
#if PIKA_PRINT_LLD_ENABLE
res = strsFormat(&buffs, 32, "%lld", value);
#else
res = strsFormat(&buffs, 32, "%d", value);
#endif
goto __exit;
}
if (arg_type == ARG_TYPE_FLOAT) {

View File

@ -443,7 +443,11 @@ static char* __print_arg(PikaObj* self, Arg* val) {
}
if (arg_type == ARG_TYPE_INT) {
int64_t value = arg_getInt(val);
#if PIKA_PRINT_LLD_ENABLE
res = strsFormat(&buffs, 32, "%lld", value);
#else
res = strsFormat(&buffs, 32, "%d", value);
#endif
goto __exit;
}
if (arg_type == ARG_TYPE_FLOAT) {

View File

@ -295,7 +295,7 @@ void arg_singlePrint(Arg* self, PIKA_BOOL in_REPL, char* end) {
#if PIKA_PRINT_LLD_ENABLE
__platform_printf("%lld%s", (long long int)arg_getInt(self), end);
#else
__platform_printf("%d%s", (int)arg_getInt(arg), end);
__platform_printf("%d%s", (int)arg_getInt(self), end);
#endif
return;
}