Browse files

Don't use "=="

This is a physical equality and it is probably not what you mean when
using "== 0". Physical equality means equality of the GC pointers...

Use "=" which is the real equality operator.
  • Loading branch information...
1 parent 177f8a7 commit 250dc76e12aa12a596585753a8cd77e39b86ee74 @gildor478 gildor478 committed Nov 5, 2010
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/vectorClock.ml
View
2 lib/vectorClock.ml
@@ -41,7 +41,7 @@ let maybe_compare (_, versions) (_, that) =
Some (-1)
else if (less_than that versions) then
Some 1
- else if (compare versions that) == 0 then
+ else if (compare versions that) = 0 then
Some 0
else
None

0 comments on commit 250dc76

Please sign in to comment.