Skip to content

Commit 43828b5

Browse files
update release comment, tidy/golf the static assert (#272)
1 parent c8029d6 commit 43828b5

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

nanoprintf.h

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
/* nanoprintf v0.5.2: a tiny embeddable printf replacement written in C.
1+
/* nanoprintf v0.5.3: a tiny embeddable printf replacement written in C.
22
https://github.com/charlesnicholson/nanoprintf
33
44
dual-licensed under 0bsd and unlicense, take your pick. see eof for details. */
@@ -276,9 +276,7 @@ typedef struct npf_bufputc_ctx {
276276
} npf_bufputc_ctx_t;
277277

278278
#if NANOPRINTF_USE_LARGE_FORMAT_SPECIFIERS == 1
279-
//compile-time assertion
280-
typedef char npf_ssize_t_and_ptrdiff_t_have_same_size[(sizeof(size_t) == sizeof(ptrdiff_t)) ? 1 : -1];
281-
279+
typedef char npf_size_is_ptrdiff[(sizeof(size_t) == sizeof(ptrdiff_t)) ? 1 : -1];
282280
typedef ptrdiff_t npf_ssize_t;
283281
#endif
284282

0 commit comments

Comments
 (0)