Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
objeck committed Feb 26, 2024
1 parent 68c30d5 commit 8c6437d
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions core/compiler/lib_src/lang.obs
Original file line number Diff line number Diff line change
Expand Up @@ -511,15 +511,15 @@ bundle System {
~#
function : native : ToHexString(b : Byte) ~ String {
buffer := Char->New[72];
Number->IntToString(b->As(Int), 10, buffer);
Number->IntToString(b->As(Int)->Abs(), 10, buffer);
return String->New(buffer, false);
}

function : native : ToHexString(b : Byte[]) ~ String {
out := String->New();
each(i : b) {
buffer := Char->New[72];
Number->IntToString(b[i]->As(Int), 16, buffer);
Number->IntToString(b[i]->As(Int)->Abs(), 16, buffer);
out->Append(buffer);
};

Expand Down Expand Up @@ -1615,7 +1615,7 @@ bundle System {
~#
function : native : ToHexString(v : Int) ~ String {
buffer := Char->New[72];
Number->IntToString(v->As(Int), 16, buffer);
Number->IntToString(v->As(Int)->Abs(), 16, buffer);
return String->New(buffer, false);
}

Expand All @@ -1624,7 +1624,7 @@ bundle System {

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

Expand Down
Binary file modified docs/api.zip
Binary file not shown.

0 comments on commit 8c6437d

Please sign in to comment.