Hello. I found narrowing error building MACSio , so I suggest sourse fixes.
Could you check if it is the right fix?
fix narrowing error.
/spack-src/plugins/macsio_silo.c:709:9:
error: non-constant-expression cannot be narrowed from type
'int' to 'unsigned int' in initializer list [-Wc++11-narrowing]
JsonGetInt(main_obj, "clargs/exercise_scr")&0x1};
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Hello. I found narrowing error building
MACSio
, so I suggest sourse fixes. Could you check if it is the right fix?I did typecast for
JsonGetInt
to 'unsigned int'. I did the same fix as the reference. ・Ref: https://github.com/LLNL/MACSio/commit/51b8c40cd9813adec5dd4dd6cee948bb9ddb7ee1#diff-211e5531b37ad0c24fea756d482d80f9