Commit 0dd12d52 authored by Uwe Schulzweida's avatar Uwe Schulzweida
Browse files

Merge declaration and definition.

parent da4d0830
......@@ -96,7 +96,6 @@ static void decode_day(int dpy, int days, int *year, int *month, int *day)
static int encode_day(int dpy, int year, int month, int day)
{
int i;
int *dpm = NULL;
long rval = (long)dpy * year + day;
......@@ -104,7 +103,7 @@ static int encode_day(int dpy, int year, int month, int day)
else if ( dpy == 365 ) dpm = month_365;
else if ( dpy == 366 ) dpm = month_366;
if ( dpm ) for ( i = 0; i < month-1; i++ ) rval += dpm[i];
if ( dpm ) for ( int i = 0; i < month-1; i++ ) rval += dpm[i];
if ( rval > INT_MAX || rval < INT_MIN )
Error("Unhandled date: %ld", rval);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment