commit 582b509f6cb691346653819b6285584087011272 from: Omar Polo date: Sat Aug 07 20:37:16 2021 UTC iota: use the correct type: tags should be u16, not u8 commit - d8d5d55f5e0ab5f887b5bfb52ebe111eda9e6002 commit + 582b509f6cb691346653819b6285584087011272 blob - 1c482c21d749d4defd0252f818cfec9dfd495df0 blob + 5d4210eedc2857c7f0a06c03302efa9c4657f90c --- script.c +++ script.c @@ -1176,10 +1176,11 @@ builtin_iota(int argc) { struct value v; - v.type = V_U8; - if ((v.v.u8 = ++lasttag) == 255) - v.v.u8 = ++lasttag; + v.type = V_U16; + if ((v.v.u16 = ++lasttag) == 255) + v.v.u16 = ++lasttag; + v.v.u16 = htole16(v.v.u16); pushv(&v); return EVAL_OK; }