Author: rfm
Date: Tue Mar 15 18:23:13 2016
New Revision: 39544
URL: http://svn.gna.org/viewcvs/gnustep?rev=39544&view=rev
Log:
Fix a few variables which should be NSInteger
Modified:
libs/base/trunk/Source/NSCalendarDate.m
Modified: libs/base/trunk/Source/NSCalendarDate.m
URL:
http://svn.gna.org/viewcvs/gnustep/libs/base/trunk/Source/NSCalendarDate.m?rev=39544&r1=39543&r2=39544&view=diff
==============================================================================
--- libs/base/trunk/Source/NSCalendarDate.m (original)
+++ libs/base/trunk/Source/NSCalendarDate.m Tue Mar 15 18:23:13 2016
@@ -187,10 +187,10 @@
+ year/400); // ...plus prior years divisible by 400
}
-static inline int
+static inline NSInteger
dayOfCommonEra(NSTimeInterval when)
{
- int r;
+ NSInteger r;
// Get reference date in terms of days
when /= 86400.0;
@@ -249,7 +249,7 @@
GSBreakTime(NSTimeInterval when, int *year, int *month, int *day,
int *hour, int *minute, int *second, int *mil)
{
- int h, m, dayOfEra;
+ NSInteger h, m, dayOfEra;
double a, b, c, d;
/* The 0.1 constant was experimentally derived to cause our behavior
@@ -1666,7 +1666,7 @@
*/
- (NSInteger) dayOfWeek
{
- int d;
+ NSInteger d;
NSTimeInterval when;
when = _seconds_since_ref + offset(_time_zone, self);
@@ -1704,7 +1704,7 @@
*/
- (NSInteger) hourOfDay
{
- int h;
+ NSInteger h;
double a, d;
NSTimeInterval when;
@@ -1729,7 +1729,7 @@
*/
- (NSInteger) minuteOfHour
{
- int h, m;
+ NSInteger h, m;
double a, b, d;
NSTimeInterval when;
@@ -1767,7 +1767,7 @@
*/
- (NSInteger) secondOfMinute
{
- int h, m, s;
+ NSInteger h, m, s;
double a, b, c, d;
NSTimeInterval when;
_______________________________________________
Gnustep-cvs mailing list
[email protected]
https://mail.gna.org/listinfo/gnustep-cvs