Details
Details
Diff Detail
Diff Detail
- Repository
- rS FreeBSD src repository - subversion
- Lint
Lint Not Applicable - Unit
Tests Not Applicable
Event Timeline
| contrib/diff/src/context.c | ||
|---|---|---|
| 65 ↗ | (On Diff #5743) | This can't possibly be right. %j is the modifier for intmax_t. |
Comment Actions
This fix is wrong. You will get warnings on i386, which we still support building on.
A better fix would be to do:
sprintf(buf, "%jd.%.9jd", (intmax_t)sec, (intmax_t)nsec);