ВходНаше всё Теги codebook 无线电组件 Поиск Опросы Закон Четверг
18 апреля
902955 Топик полностью
fk0, легенда (10.02.2019 19:03, просмотров: 266) ответил Codavr на Ради такого дела готов отслеживать. Так все же, при операциях оно к uint их переобразует?
Там вначале пытается в int, если не получается, всовывает в unsigned (если типы разные, ибо если одинаковые то и делать нечего): If both operands have the same type, then no further conversion is needed. Otherwise, if both operands have signed integer types or both have unsigned integer types, the operand with the type of lesser integer conversion rank is converted to the type of the operand with greater rank. Otherwise, if the operand that has unsigned integer type has rank greater or equal to the rank of the type of the other operand, then the operand with signed integer type is converted to the type of the operand with unsigned integer type. Otherwise, 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. Otherwise, both operands are converted to the unsigned integer type corresponding to the type of the operand with signed integer type.
[ZX]