Skip to content

Commit

Permalink
fix JNA keyCmp
Browse files Browse the repository at this point in the history
  • Loading branch information
kodebach committed Oct 2, 2020
1 parent 2c1850e commit 8eb9717
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -568,7 +568,7 @@ public int cmp (final Key other)
{
throw new IllegalArgumentException ("other should be a key, not null");
}
return Elektra.INSTANCE.keyCmp (get (), other.get ());
return Integer.signum (Elektra.INSTANCE.keyCmp (get (), other.get ()));
}

/**
Expand Down

0 comments on commit 8eb9717

Please sign in to comment.