Browse Source

Fix slicing issue; Change path of math/bits in package json #363

gingerBill 6 years ago
parent
commit
a9b20c29b1
2 changed files with 2 additions and 2 deletions
  1. 1 1
      core/encoding/json/marshal.odin
  2. 1 1
      core/runtime/internal.odin

+ 1 - 1
core/encoding/json/marshal.odin

@@ -1,7 +1,7 @@
 package json
 
 import "core:mem"
-import "core:bits"
+import "core:math/bits"
 import "core:runtime"
 import "core:strconv"
 import "core:strings"

+ 1 - 1
core/runtime/internal.odin

@@ -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) {
-	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) {
 		fd := os.stderr;
 		print_caller_location(fd, Source_Code_Location{file, line, column, "", 0});