We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent c415a07 commit 7e3513dCopy full SHA for 7e3513d
examples/build_all.sh
@@ -12,3 +12,4 @@
12
../nesfab counter/counter.cfg
13
../nesfab fade/fade.cfg
14
../nesfab sound_effects/sound_effects.cfg
15
+../nesfab trig/trig.cfg
src/byteify.cpp
@@ -43,9 +43,13 @@ static bm_t _get_bm(ssa_value_t value)
43
bm_t bm;
44
fixed_uint_t f = value.fixed().value;
45
46
+ type_name_t num_type = value.num_type_name();
47
+ if(!is_byteified(num_type))
48
+ num_type = TYPE_U;
49
+
50
for(unsigned i = 0; i < bm.size(); ++i)
51
{
- bm[i] = ssa_value_t(f & 0xFF, TYPE_U);
52
+ bm[i] = ssa_value_t(f & 0xFF, num_type);
53
f >>= 8;
54
}
55
return bm;
0 commit comments