On Wed, Feb 16, 2022 at 01:07:37PM +0100, Laslo Hunhold wrote:
> On Wed, 16 Feb 2022 17:46:47 +0600
> NRK wrote:
>
> Dear NRK,
>
> > Attached two small patches, one fixing the conversion specifier to
> > `%u` for unsigned int and another one not for not assuming int ==
> > 32bits.
> >
> > These
On Wed, 16 Feb 2022 19:10:06 +0600
NRK wrote:
Dear NRK,
> I don't think this is possible, at least not with the LENGTH macro.
> The pre-processor doesn't have access to `sizeof` operator.
thanks for your quick and helpful answer, and sorry on my behalf for
this mistake. It totally makes sense t
On Wed, Feb 16, 2022 at 01:07:37PM +0100, Laslo Hunhold wrote:
> @all: why not make a static compile-time-check on LENGTH(tags) and vary
> the type accordingly?
>
> #if LENGTH(tags) < 8
> typedef tag_bitmap uint_least8_t;
> #elif LENGTH(tags) < 16
> typedef tag_bitmap uint_least16_t;
>
On Wed, 16 Feb 2022 17:46:47 +0600
NRK wrote:
Dear NRK,
> Attached two small patches, one fixing the conversion specifier to
> `%u` for unsigned int and another one not for not assuming int ==
> 32bits.
>
> These are more closer to pedantic cleanups rather than actual
> meaningful changes, but