Re: [hackers] [libgrapheme][PATCH] Simplify cp_decode and be more strict
On Thu, 28 May 2020 16:49:22 +0200
Mattias Andrée <maandree_AT_kth.se> wrote:
Dear Mattias,
> > > So would you recommend an explicit cast to uint32_t, i.e.
> > >
> > > (uint32_t)1 << 16
> > >
> > > to overcome this?
> >
> > Yes.
>
> Don't forget about 0x10FFFF, where you need UINT32_C(0x10FFFF).
> Casting doesn't work here unless you also add the L suffix.
thanks for your input on this. I've fixed these problems and also
simplified the mask-operation as you've suggested.
With best regards
Laslo
Received on Thu May 28 2020 - 19:33:12 CEST
This archive was generated by hypermail 2.3.0
: Thu May 28 2020 - 19:48:32 CEST