TICS Coding Standard Viewer 
TIOBE Software Quality Framework
Print-friendly version
©TIOBE Software www.tiobe.com
 
TIOBE - C Coding Standard
Search

Guideline:  6.2#2

Synopsis:Use unsigned only where necessary.
Language:C
Severity Level:10
Category:CONVERSIONS


Description:
Although nearly all implementations will behave the same when converting to
signed types, maximum portability requires that all implementation defined behaviour
is avoided. See also the discussion in section 1.8.int a;
unsigned int c;
a = c; /* WRONG */