Commit Diff
--- 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; }