P99

◆ P99_TO_UNSIGN

#define P99_TO_UNSIGN (   T,
  VAL 
)
Value:
(sizeof(T) < sizeof(signed) \
? (sizeof(T) == 1u \
? (unsigned char)+(VAL) \
: (unsigned short)+(VAL)) \
: (sizeof(T) < sizeof(unsigned long) \
? (unsigned)+(VAL) \
: (sizeof(T) < sizeof(unsigned long long) \
? (unsigned long)+(VAL) \
: (unsigned long long)+(VAL)))))
Remarks
argument 0 should correspond to a type that is not a VLA.
argument 1 should correspond to a macro name

Definition at line 232 of file p99_int.h.

uintmax_t
uintmax_t
Definition: p99_str.h:117
long
long long
Definition: p99_str.h:69