Skip to content

Commit

Permalink
Fix AlarmTime comparison
Browse files Browse the repository at this point in the history
Found by clang.
  • Loading branch information
davidben committed Mar 29, 2012
1 parent ca83374 commit d1c8494
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/libs/callback/alarm.c
Expand Up @@ -41,7 +41,7 @@ static inline int
AlarmTime_compare(const AlarmTime t1, const AlarmTime t2) {
if (t1 < t2)
return -1;
if (t2 > t2)
if (t2 > t1)
return 1;
return 0;
}
Expand Down

0 comments on commit d1c8494

Please sign in to comment.