Skip to content

Commit

Permalink
fixup! Distinguish float arrays
Browse files Browse the repository at this point in the history
  • Loading branch information
OlivierNicole committed Aug 28, 2024
1 parent f357bf7 commit f96b7a0
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion compiler/lib/eval.ml
Original file line number Diff line number Diff line change
Expand Up @@ -381,7 +381,7 @@ let the_cond_of info x =
info
(fun x ->
match Flow.Info.def info x with
| Some (Constant (Int 0l | Int32 0l | NativeInt 0n)) -> Zero
| Some (Constant (Int 0l)) -> Zero
| Some
(Constant
( Int _
Expand Down
3 changes: 2 additions & 1 deletion compiler/lib/parse_bytecode.ml
Original file line number Diff line number Diff line change
Expand Up @@ -515,7 +515,8 @@ end = struct
| Float_array _ -> false
| Int64 _ -> false
| Tuple _ -> false
| Int _ | Int32 _ | NativeInt _ -> true
| Int _ -> true
| Int32 _ | NativeInt _ -> false
end

let const i = Constant (Int i)
Expand Down

0 comments on commit f96b7a0

Please sign in to comment.