Fix bug subtracting minutes from date.

git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@21677 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
CaS 2005-08-25 08:05:31 +00:00
parent 532b855870
commit 8bb5a81e4a
3 changed files with 5 additions and 2 deletions

View file

@ -1,3 +1,7 @@
2005-08-25 Richard Frith-Macdonald <rfm@gnu.org>
* Source/NSCalendarDate.m: Fix bug subtracting minute interval.
2005-08-22 Adam Fedor <fedor@gnu.org> 2005-08-22 Adam Fedor <fedor@gnu.org>
* Source/NSGeometry.m (NSStringFromPoint, NSStringFromRect, * Source/NSGeometry.m (NSStringFromPoint, NSStringFromRect,

View file

@ -2414,7 +2414,7 @@ static void Grow(DescriptionInfo *info, unsigned size)
minute %= 60; minute %= 60;
if (minute < 0) if (minute < 0)
{ {
hours++; hours--;
minute += 60; minute += 60;
} }

View file

@ -34,7 +34,6 @@ main()
id pool; id pool;
//behavior_set_debug(0); //behavior_set_debug(0);
pool = [[NSAutoreleasePool alloc] init]; pool = [[NSAutoreleasePool alloc] init];
NSLog(@"%@", [NSCalendarDate distantFuture]); NSLog(@"%@", [NSCalendarDate distantFuture]);