Skip to content

Commit 7e3513d

Browse files
committed
More fixes
1 parent c415a07 commit 7e3513d

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

examples/build_all.sh

+1
Original file line numberDiff line numberDiff line change
@@ -12,3 +12,4 @@
1212
../nesfab counter/counter.cfg
1313
../nesfab fade/fade.cfg
1414
../nesfab sound_effects/sound_effects.cfg
15+
../nesfab trig/trig.cfg

src/byteify.cpp

+5-1
Original file line numberDiff line numberDiff line change
@@ -43,9 +43,13 @@ static bm_t _get_bm(ssa_value_t value)
4343
bm_t bm;
4444
fixed_uint_t f = value.fixed().value;
4545

46+
type_name_t num_type = value.num_type_name();
47+
if(!is_byteified(num_type))
48+
num_type = TYPE_U;
49+
4650
for(unsigned i = 0; i < bm.size(); ++i)
4751
{
48-
bm[i] = ssa_value_t(f & 0xFF, TYPE_U);
52+
bm[i] = ssa_value_t(f & 0xFF, num_type);
4953
f >>= 8;
5054
}
5155
return bm;

0 commit comments

Comments
 (0)