Skip to content
This repository has been archived by the owner on Aug 29, 2018. It is now read-only.

Commit

Permalink
fake merge core fixes from haiku
Browse files Browse the repository at this point in the history
  • Loading branch information
hecanjog committed Feb 20, 2012
1 parent 8ce8428 commit 007366c
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions fabric/fabric.py
Expand Up @@ -453,10 +453,14 @@ def iscrossing(first, second):
first = struct.unpack("<h", first)
second = struct.unpack("<h", second)

if first[0] >= 0 and second[0] <= 0:
if first[0] > 0 and second[0] < 0:
return True
elif first[0] <= 0 and second[0] >= 0:
elif first[0] < 0 and second[0] > 0:
return True
elif first[0] == 0 and second[0] != 0:
return False
elif first[0] != 0 and second[0] == 0:
return True

return False

Expand Down

0 comments on commit 007366c

Please sign in to comment.