Permalink
Browse files

Fix clang warning if ((_ == _)).

  • Loading branch information...
1 parent cbe518a commit 14f6fe96ad8cae1365276a52114be59284a55d90 @bvaugon committed Jul 3, 2013
Showing with 2 additions and 2 deletions.
  1. +2 −2 runtime/ocamlcc-byterun-4.00/ints.c
@@ -452,7 +452,7 @@ CAMLprim value caml_int64_div(value v1, value v2)
{
int64 dividend = Int64_val(v1);
int64 divisor = Int64_val(v2);
- if (I64_is_zero(divisor)) caml_raise_zero_divide();
+ if I64_is_zero(divisor) caml_raise_zero_divide();
/* PR#4740: on some processors, division crashes on overflow.
Implement the same behavior as for type "int". */
if (I64_is_min_int(dividend) && I64_is_minus_one(divisor)) return v1;
@@ -463,7 +463,7 @@ CAMLprim value caml_int64_mod(value v1, value v2)
{
int64 dividend = Int64_val(v1);
int64 divisor = Int64_val(v2);
- if (I64_is_zero(divisor)) caml_raise_zero_divide();
+ if I64_is_zero(divisor) caml_raise_zero_divide();
/* PR#4740: on some processors, division crashes on overflow.
Implement the same behavior as for type "int". */
if (I64_is_min_int(dividend) && I64_is_minus_one(divisor)) {

0 comments on commit 14f6fe9

Please sign in to comment.