Skip to content

Commit

Permalink
update release comment, tidy/golf the static assert (#272)
Browse files Browse the repository at this point in the history
  • Loading branch information
charlesnicholson authored Aug 6, 2024
1 parent c8029d6 commit 43828b5
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions nanoprintf.h
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/* nanoprintf v0.5.2: a tiny embeddable printf replacement written in C.
/* nanoprintf v0.5.3: a tiny embeddable printf replacement written in C.
https://github.com/charlesnicholson/nanoprintf
[email protected]
dual-licensed under 0bsd and unlicense, take your pick. see eof for details. */
Expand Down Expand Up @@ -276,9 +276,7 @@ typedef struct npf_bufputc_ctx {
} npf_bufputc_ctx_t;

#if NANOPRINTF_USE_LARGE_FORMAT_SPECIFIERS == 1
//compile-time assertion
typedef char npf_ssize_t_and_ptrdiff_t_have_same_size[(sizeof(size_t) == sizeof(ptrdiff_t)) ? 1 : -1];

typedef char npf_size_is_ptrdiff[(sizeof(size_t) == sizeof(ptrdiff_t)) ? 1 : -1];
typedef ptrdiff_t npf_ssize_t;
#endif

Expand Down

0 comments on commit 43828b5

Please sign in to comment.