[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: Any suggestions on debugging assertion fail in Lua testsuite, in a custom Lua port? (episode 2)
- From: Roberto Ierusalimschy <roberto@...>
- Date: Mon, 30 Dec 2013 11:24:36 -0200
> >From http://stackoverflow.com/a/17312930/98528, I believe Lua is OK here (I
> understand that apparently "unsigned char" should get promoted to "int",
> and then both ints can be compared). Reported this to Go project's issue
> tracker, thus.
>
> /Mateusz.
The C standard (6.3.1.8) says this:
[...], if the type of the operand with signed integer type can
represent all of the values of the type of the operand with unsigned
integer type, then the operand with unsigned integer type is converted
to the type of the operand with signed integer type.
-- Roberto