Skip to content

some compilers define char as being unsigned and then char(-128) leads to an

Andreas Dedner requested to merge bugfix/narrowingerror into master

error: narrowing conversion of ‘-127’ from ‘int’ to ‘char’ [-Wnarrowing] the values used are between -128 and 127 which is the 'signed char' range so this change should not make any difference on systems where char is signed anyway and work in the other case as well.

Merge request reports

Loading