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

Re: [csmith-dev] int8_t usage

On 08/09/11 21:07, jxyang wrote:
> I can't think of anything would go wrong if you hack stdint.h to make a
> 8-bit type effectively 16-bit. That's probably your best bet. Tell us if
> anything gets broken that way: it's likely Csmith's fault.

Yes, I did that and it works, however it goes against the standard since an int8_t should have _exactly_ 8bits so in theory we can't define a int8_t. That's why I suggested, if CSmith doesn't rely on the type being exactly 8bits, to use int_least8_t.

Member of the CSR plc group of companies. CSR plc registered in England and Wales, registered number 4187346, registered office Churchill House, Cambridge Business Park, Cowley Road, Cambridge, CB4 0WZ, United Kingdom
More information can be found at www.csr.com. Follow CSR on Twitter at http://twitter.com/CSR_PLC and read our blog at www.csr.com/blog