Source-Changes-D archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: CVS commit: src/usr.bin/gencat



> -       if (ntohl(cat_hdr.__magic) != _NLS_MAGIC)
> +       if (ntohl((uint32_t)cat_hdr.__magic) != _NLS_MAGIC)
> 
> Dare I ask how ntohl is defined on these platforms? I would have
> expected that routine integer promotions would make the argument 32
> bits wide.
> 
> If that isn't the case it might be better to adjust how ntohl is
> defined...?

Or be32toh()?
---
Izumi Tsutsui


Home | Main Index | Thread Index | Old Index