Browse Source

Fix minor issue with unmarshal for booleans

gingerBill 3 years ago
parent
commit
a75dc9d86d
1 changed files with 1 additions and 0 deletions
  1. 1 0
      core/encoding/json/unmarshal.odin

+ 1 - 0
core/encoding/json/unmarshal.odin

@@ -222,6 +222,7 @@ unmarsal_value :: proc(p: ^Parser, v: any) -> (err: Unmarshal_Error) {
 		advance_token(p)
 		advance_token(p)
 		return
 		return
 	case .False, .True:
 	case .False, .True:
+		advance_token(p)
 		if assign_bool(v, token.kind == .True) {
 		if assign_bool(v, token.kind == .True) {
 			return
 			return
 		}
 		}