unsigned type

[计] 无符号类

  • The unsigned char data type and byte data type will yield incorrect results and act as though they are signed types i.e.type char .

    符号字符数据 类型和二进制数据类型将产生错误的计算结果,会当成有符号的数据类型进行计算。

  • Otherwise if the signed integer type can represent all of the values of the unsigned type the common type is the signed type .

    否则,如果有符号整型可以表示无 符号 整型的值时,公共类型是有符号类型。

  • Unfortunately the Standard permits an implementation to make all of the integer types the same size and that complicates the rules for when a signed integer type meets an unsigned integer type .

    不幸的是,标准允许实现使得所有整数类型都是同样的大小,这使一个有符号整型遇到一个 符号 整型时的规则变得复杂了。

  • But until then you should think about how you would map an unsigned short in IDL to a Java type .

    但在此之前,您已经考虑如何将IDL中的 unsigned short映射成一种Java 类型

  • Unary minus operator applied to unsigned type result still unsigned

    一元负运算符应用于 符号 类型,结果仍为无符号类型

  • If the unsigned integer type has rank greater than or equal to the rank of the signed integer type the common type is the unsigned type .

    如果无符号整型的优先级高于或等于有符号类型,公共类型是 符号 类型