We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0b3e1b2 commit 067abc6Copy full SHA for 067abc6
src/libasr/codegen/c_utils.h
@@ -471,6 +471,22 @@ class CCPPDSUtils {
471
default: { throw LCompilersException("Integer kind not supported"); }
472
}
473
474
+ case ASR::ttypeType::UnsignedInteger: {
475
+ ASR::UnsignedInteger_t *ui = (ASR::UnsignedInteger_t*)t;
476
+ switch (ui->m_kind) {
477
+ case 1: { return "%u"; }
478
+ case 2: { return "%u"; }
479
+ case 4: { return "%u"; }
480
+ case 8: {
481
+ if (platform == Platform::Linux) {
482
+ return "%lu";
483
+ } else {
484
+ return "%llu";
485
+ }
486
487
+ default: { throw LCompilersException("Unsigned Integer kind not supported"); }
488
489
490
case ASR::ttypeType::Real: {
491
ASR::Real_t *r = (ASR::Real_t*)t;
492
switch (r->m_kind) {
0 commit comments