lua-users home
lua-l archive

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


> >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