Skip to content
Snippets Groups Projects
Commit b33bf237 authored by Thomas Jahns's avatar Thomas Jahns :cartwheel:
Browse files

Prefer int64_t since only caller uses that.

parent 7e8f77cb
No related branches found
No related tags found
2 merge requests!91Add alternative code path for huge buffers.,!89Miscellaneous fixes and CDI-PIO improvements
......@@ -59,9 +59,9 @@ days_per_year(int calendar, int year)
}
void
decode_calday(int daysPerYear, int days, int *year, int *month, int *day)
decode_calday(int daysPerYear, int64_t days, int *year, int *month, int *day)
{
*year = (days - 1) / daysPerYear;
*year = (int)((days - 1) / daysPerYear);
days -= (*year * daysPerYear);
const int *daysPerMonthArray = get_dayspermonth_array(daysPerYear);
......@@ -77,7 +77,7 @@ decode_calday(int daysPerYear, int days, int *year, int *month, int *day)
}
*month = i + 1;
*day = days;
*day = (int)days;
}
int64_t
......
......@@ -10,7 +10,7 @@
extern "C" {
#endif
void decode_calday(int daysPerYear, int days, int *year, int *month, int *day);
void decode_calday(int daysPerYear, int64_t days, int *year, int *month, int *day);
int64_t encode_calday(int daysPerYear, int year, int month, int day);
static inline int
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment