Skip to content

Commit

Permalink
Fix logical error in text.tact tact-lang#603
Browse files Browse the repository at this point in the history
Edited:
Line tact-lang#74 From:
 } else if (code == 45 || code == 43) { // - or +
To:
 } else if (code == 45 && code == 43) { // - or +

Line tact-lang#76 From:
} else if (code == 95 || code == 47) { // _ or /
} else if (code == 95 && code == 47) { // _ or /
  • Loading branch information
Srg-12 authored Jul 22, 2024
1 parent ce7c502 commit 1e2c64b
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions stdlib/std/text.tact
Original file line number Diff line number Diff line change
Expand Up @@ -71,9 +71,9 @@ extends fun fromBase64(self: Slice): Slice {
result = result.storeUint(code - (97 - 26), 6);
} else if (code >= 48 && code <= 57) { // 0-9
result = result.storeUint(code + (52 - 48), 6);
} else if (code == 45 || code == 43) { // - or +
} else if (code == 45 && code == 43) { // - or +
result = result.storeUint(62, 6);
} else if (code == 95 || code == 47) { // _ or /
} else if (code == 95 && code == 47) { // _ or /
result = result.storeUint(63, 6);
} else if (code == 61) { // =
// Skip
Expand All @@ -98,4 +98,4 @@ extends fun fromBase64(self: Slice): Slice {
//

@name(__tact_address_to_user_friendly)
extends native toString(self: Address): String;
extends native toString(self: Address): String;

0 comments on commit 1e2c64b

Please sign in to comment.