Skip to content

Commit

Permalink
Fixup equality tests for dates
Browse files Browse the repository at this point in the history
  • Loading branch information
rfm committed Oct 31, 2024
1 parent cac43f7 commit cfa3cd3
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions Tools/autogsdoc.m
Original file line number Diff line number Diff line change
Expand Up @@ -1399,7 +1399,7 @@ standard PropertyList format (not the XML format of OS X), using
attrs = [mgr fileAttributesAtPath: sfile
traverseLink: YES];
d = [attrs fileModificationDate];
if (sDate == nil || [d earlierDate: sDate] == sDate)
if (sDate == nil || [d earlierDate: sDate] != d)
{
sDate = d;
IF_NO_ARC([[sDate retain] autorelease];)
Expand Down Expand Up @@ -1427,7 +1427,7 @@ standard PropertyList format (not the XML format of OS X), using

attrs = [mgr fileAttributesAtPath: ofile traverseLink: YES];
d = [attrs fileModificationDate];
if (gDate == nil || [d laterDate: gDate] == gDate)
if (gDate == nil || [d laterDate: gDate] != d)
{
gDate = d;
IF_NO_ARC([[gDate retain] autorelease];)
Expand All @@ -1439,7 +1439,7 @@ standard PropertyList format (not the XML format of OS X), using
}
}

if (gDate == nil || [sDate earlierDate: gDate] == gDate)
if (gDate == nil || [sDate earlierDate: gDate] != sDate)
{
NSArray *modified;

Expand Down Expand Up @@ -1670,7 +1670,7 @@ standard PropertyList format (not the XML format of OS X), using
* unless the project index is already more up to date than
* this file (or the gsdoc file does not exist of course).
*/
if (gDate != nil && [gDate earlierDate: rDate] == rDate)
if (gDate != nil && [gDate earlierDate: rDate] != gDate)
{
if (showDependencies == YES)
{
Expand Down Expand Up @@ -2152,7 +2152,7 @@ standard PropertyList format (not the XML format of OS X), using

if ([mgr isReadableFileAtPath: gsdocfile] == YES)
{
if (hDate == nil || [gDate earlierDate: hDate] == hDate)
if (hDate == nil || [gDate earlierDate: hDate] != gDate)
{
NSData *d;
GSXMLNode *root;
Expand Down

0 comments on commit cfa3cd3

Please sign in to comment.