1
0
mirror of https://gitlab.gnome.org/GNOME/libxslt synced 2025-11-05 12:10:38 +03:00

*** empty log message ***

This commit is contained in:
Igor Zlatkovic
2002-04-17 21:17:47 +00:00
parent b4bd24584f
commit f1033321c0
2 changed files with 11 additions and 6 deletions

View File

@@ -1,3 +1,8 @@
Tue Apr 17 23:16:54 CEST 2002 Igor Zlatkovic <igor@stud.fh-frankfurt.de>
* libexslt/date.c: fixed type inconsistencies, double->int
and unsigned/signed mismatch warnings eliminated
Tue Apr 16 19:40:21 CEST 2002 Igor Zlatkovic <igor@stud.fh-frankfurt.de>
* win32/Makefile.msvc: XSLT debugger support fix

View File

@@ -106,9 +106,9 @@ struct _exsltDate {
#define IS_LEAP(y) \
(((y % 4 == 0) && (y % 100 != 0)) || (y % 400 == 0))
static const int daysInMonth[12] =
static const unsigned int daysInMonth[12] =
{ 31, 28, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31 };
static const int daysInMonthLeap[12] =
static const unsigned int daysInMonthLeap[12] =
{ 31, 29, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31 };
#define VALID_MDAY(dt) \
@@ -1182,7 +1182,7 @@ exsltDateMonthName (const xmlChar *dateTime) {
{ 'D', 'e', 'c', 'e', 'm', 'b', 'e', 'r', 0 }
};
int month;
month = exsltDateMonthInYear(dateTime);
month = (int) exsltDateMonthInYear(dateTime);
if (!VALID_MONTH(month))
month = 0;
return monthNames[month];
@@ -1229,7 +1229,7 @@ exsltDateMonthAbbreviation (const xmlChar *dateTime) {
{ 'D', 'e', 'c', 0 }
};
int month;
month = exsltDateMonthInYear(dateTime);
month = (int) exsltDateMonthInYear(dateTime);
if(!VALID_MONTH(month))
month = 0;
return monthAbbreviations[month];
@@ -1606,7 +1606,7 @@ exsltDateDayName (const xmlChar *dateTime) {
{ 'S', 'a', 't', 'u', 'r', 'd', 'a', 'y', 0 }
};
int day;
day = exsltDateDayInWeek(dateTime);
day = (int) exsltDateDayInWeek(dateTime);
if((day < 1) || (day > 7))
day = 0;
return dayNames[day];
@@ -1645,7 +1645,7 @@ exsltDateDayAbbreviation (const xmlChar *dateTime) {
{ 'S', 'a', 't', 0 }
};
int day;
day = exsltDateDayInWeek(dateTime);
day = (int) exsltDateDayInWeek(dateTime);
if((day < 1) || (day > 7))
day = 0;
return dayAbbreviations[day];