1
0
mirror of https://frontier.innolan.net/rainlance/amiga-ntimed.git synced 2026-05-03 05:51:37 +00:00

Minor consistency stuff discovered on OS/X

This commit is contained in:
Poul-Henning Kamp
2015-01-04 15:18:51 +00:00
parent 7346057b62
commit f0007519ab
4 changed files with 6 additions and 6 deletions

View File

@@ -65,7 +65,7 @@ ts_fixstorage(struct timestamp *storage)
/**********************************************************************/
struct timestamp *
TS_Nanosec(struct timestamp *storage, intmax_t sec, intmax_t nsec)
TS_Nanosec(struct timestamp *storage, int64_t sec, int64_t nsec)
{
storage = ts_fixstorage(storage);
@@ -151,7 +151,7 @@ TS_Format(char *buf, ssize_t len, const struct timestamp *ts)
y -= 1000000000ULL;
x += 1;
}
assert(snprintf(buf, len, "%jd.%09jd", x, y) < len);
assert(snprintf(buf, len, "%jd.%09jd", (intmax_t)x, (intmax_t)y) < len);
}
/**********************************************************************