mirror of
https://github.com/Ed94/Odin.git
synced 2026-08-05 15:18:49 +00:00
Fix slicing issue; Change path of math/bits in package json #363
This commit is contained in:
@@ -1,7 +1,7 @@
|
|||||||
package json
|
package json
|
||||||
|
|
||||||
import "core:mem"
|
import "core:mem"
|
||||||
import "core:bits"
|
import "core:math/bits"
|
||||||
import "core:runtime"
|
import "core:runtime"
|
||||||
import "core:strconv"
|
import "core:strconv"
|
||||||
import "core:strings"
|
import "core:strings"
|
||||||
|
|||||||
@@ -303,7 +303,7 @@ slice_expr_error_hi :: proc "contextless" (file: string, line, column: int, hi:
|
|||||||
}
|
}
|
||||||
|
|
||||||
slice_expr_error_lo_hi :: proc "contextless" (file: string, line, column: int, lo, hi: int, len: int) {
|
slice_expr_error_lo_hi :: proc "contextless" (file: string, line, column: int, lo, hi: int, len: int) {
|
||||||
if 0 <= lo && lo < len && lo <= hi && hi <= len do return;
|
if 0 <= lo && lo <= len && lo <= hi && hi <= len do return;
|
||||||
handle_error :: proc "contextless" (file: string, line, column: int, lo, hi: int, len: int) {
|
handle_error :: proc "contextless" (file: string, line, column: int, lo, hi: int, len: int) {
|
||||||
fd := os.stderr;
|
fd := os.stderr;
|
||||||
print_caller_location(fd, Source_Code_Location{file, line, column, "", 0});
|
print_caller_location(fd, Source_Code_Location{file, line, column, "", 0});
|
||||||
|
|||||||
Reference in New Issue
Block a user