Skip to content

Commit

Permalink
Fixed wrong condition
Browse files Browse the repository at this point in the history
  • Loading branch information
Filip Krikava committed Jan 9, 2011
1 parent 694410d commit 8e1514c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ShiftIt/AXUIUtils.m
Expand Up @@ -154,7 +154,7 @@ void AXUIFreeWindowRef(void *window) {
}

const char *AXUIGetErrorMessage(int code) {
FMTAssert(code < 0 && code > -kErrorMessageCount_, @"error code must be %d < code < 0", -kErrorMessageCount_);
FMTAssert(code < 0 && code >= -kErrorMessageCount_, @"error code must be %d < code < 0", -kErrorMessageCount_);

return kErrorMessages_[-code-1];
}

0 comments on commit 8e1514c

Please sign in to comment.