Skip to content

Commit ceab333

Browse files
committed
fix #4990
1 parent 9be68c8 commit ceab333

File tree

3 files changed

+4
-3
lines changed

3 files changed

+4
-3
lines changed

jscomp/core/lam.ml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -795,7 +795,7 @@ let if_ (a : t) (b : t) (c : t) : t =
795795
| Lprim(
796796
{primitive = Pnot ; args = [Lprim{primitive = Pintcomp Ceq ; args = [Lvar j; Lconst _] as args; loc}]})
797797
when Ident.same i j && eq_approx true_ c
798-
-> Lprim{primitive = Pintcomp Ceq; args; loc}
798+
-> Lprim{primitive = Pintcomp Cneq; args; loc}
799799
| _ -> Lifthenelse(a,b,c)
800800
end
801801
| _ -> Lifthenelse (a,b,c))

jscomp/test/build.ninja

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -321,7 +321,8 @@ o test/gpr_4494_test.cmi test/gpr_4494_test.cmj : cc test/gpr_4494_test.ml | $st
321321
o test/gpr_4519_test.cmi test/gpr_4519_test.cmj : cc test/gpr_4519_test.ml | test/mt.cmj $stdlib
322322
o test/gpr_459_test.cmi test/gpr_459_test.cmj : cc test/gpr_459_test.ml | test/mt.cmj $stdlib
323323
o test/gpr_4639_test.cmi test/gpr_4639_test.cmj : cc test/gpr_4639_test.ml | $stdlib
324-
o test/gpr_4924_test.cmi test/gpr_4924_test.cmj : cc test/gpr_4924_test.ml | $stdlib
324+
o test/gpr_4900_test.cmi test/gpr_4900_test.cmj : cc test/gpr_4900_test.ml | test/mt.cmj $stdlib
325+
o test/gpr_4924_test.cmi test/gpr_4924_test.cmj : cc test/gpr_4924_test.ml | test/mt.cmj $stdlib
325326
o test/gpr_4931.cmi test/gpr_4931.cmj : cc test/gpr_4931.ml | $stdlib
326327
o test/gpr_627_test.cmi test/gpr_627_test.cmj : cc test/gpr_627_test.ml | test/mt.cmj $stdlib
327328
o test/gpr_658.cmi test/gpr_658.cmj : cc test/gpr_658.ml | $stdlib

jscomp/test/ocaml_typedtree_test.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27272,7 +27272,7 @@ function in_pervasives(p) {
2727227272

2727327273
function is_datatype(decl) {
2727427274
var match = decl.type_kind;
27275-
return match === 0;
27275+
return match !== 0;
2727627276
}
2727727277

2727827278
function object_fields(ty) {

0 commit comments

Comments
 (0)