Mercurial > hg > th-libs
comparison th_printf.c @ 725:5c8936e326d6
On 64bit 'l' printf specifier is 64bit, on 32bit 'll' is 64bit.
author | Matti Hamalainen <ccr@tnsp.org> |
---|---|
date | Mon, 18 Oct 2021 01:56:55 +0300 |
parents | 4ca6a3b30fe8 |
children | 29e44a58bc73 |
comparison
equal
deleted
inserted
replaced
724:388d72f4189d | 725:5c8936e326d6 |
---|---|
497 | 497 |
498 // Check for length modifiers (only some are supported currently) | 498 // Check for length modifiers (only some are supported currently) |
499 switch (*fmt) | 499 switch (*fmt) |
500 { | 500 { |
501 case 'l': | 501 case 'l': |
502 if (*++fmt == 'l') | 502 fmt++; |
503 if (*fmt == 'l') | |
503 { | 504 { |
504 f_flags |= TH_PF_LONGLONG; | 505 f_flags |= TH_PF_LONGLONG; |
505 fmt++; | 506 fmt++; |
506 } | 507 } |
507 else | 508 else |
509 #if TH_ARCH == 64 | |
510 f_flags |= TH_PF_LONGLONG; | |
511 #else | |
508 f_flags |= TH_PF_LONG; | 512 f_flags |= TH_PF_LONG; |
513 #endif | |
509 break; | 514 break; |
510 | 515 |
511 case 'L': | 516 case 'L': |
512 fmt++; | 517 fmt++; |
513 f_flags |= TH_PF_LONGLONG; | 518 f_flags |= TH_PF_LONGLONG; |