Added 'const' to two arrays of constants. Thanks to Simon Fraser for

suggesting this.
This commit is contained in:
wtc%netscape.com 2001-09-15 04:47:14 +00:00
Родитель 5dbea6cf6b
Коммит b3ba5b72ad
1 изменённых файлов: 2 добавлений и 2 удалений

Просмотреть файл

@ -64,7 +64,7 @@
* each month, where index 1 is January, and day 0 is January 1.
*/
static int lastDayOfMonth[2][13] = {
static const int lastDayOfMonth[2][13] = {
{-1, 30, 58, 89, 119, 150, 180, 211, 242, 272, 303, 333, 364},
{-1, 30, 59, 90, 120, 151, 181, 212, 243, 273, 304, 334, 365}
};
@ -73,7 +73,7 @@ static int lastDayOfMonth[2][13] = {
* The number of days in a month
*/
static PRInt8 nDays[2][12] = {
static const PRInt8 nDays[2][12] = {
{31, 28, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31},
{31, 29, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31}
};