Unsigned short sem_num; (semaphore number).
unsigned short sem_num;(信号量个数)。
If you must multiply, cast to an unsigned short before multiplying.
如果一定要计算乘法,可以在计算乘法之前转换为unsigned short。
This is true for unsigned short, unsigned long, and unsigned long long.
对于 unsigned short , unsigned long , 以及 unsigned long long 来说也是这样。
For example, suppose we have an unsigned short returning from an IDL interface. The range of this type will be from 0 to 65535.
例如,假设有一个从IDL接口返回的unsigned short类型值,这一类型的取值范围是0到65535。
C-89 data types (include signed and unsigned) short, int, long, long long, float, and double.
C - 89数据类型(包括有符号和无符号)short、int、long、long long、float和double。