mirror of
https://gitee.com/Lyon1998/pikapython.git
synced 2025-01-29 17:22:56 +08:00
fix LLD
This commit is contained in:
parent
61a3707705
commit
75ce1ba5c8
@ -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) {
|
||||
|
@ -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) {
|
||||
|
@ -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;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user