Skip to content

Commit

Permalink
right sizing int/char/byte to string sizes
Browse files Browse the repository at this point in the history
  • Loading branch information
objeck committed Feb 26, 2024
1 parent a9d4acf commit f665104
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions core/compiler/lib_src/lang.obs
Original file line number Diff line number Diff line change
Expand Up @@ -746,7 +746,8 @@ bundle System {

each(i : v) {
buffer := Char->New[34];
Number->IntToString(v[i]->As(Int)->Abs(), 16, buffer);
n := v[i]->As(Int);
Number->IntToString(n->Abs(), 16, buffer);
out->Append(buffer);
};

Expand Down Expand Up @@ -1637,7 +1638,8 @@ bundle System {

each(i : v) {
buffer := Char->New[34];
Number->IntToString(v[i]->As(Int)->Abs(), 16, buffer);
n := v[i]->As(Int);
Number->IntToString(n->Abs(), 16, buffer);
out->Append(buffer);
};

Expand Down

0 comments on commit f665104

Please sign in to comment.