Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!usc!apple!portal!cup.portal.com!PLS From: PLS@cup.portal.com (Paul L Schauble) Newsgroups: comp.lang.c Subject: Signed to unsigned comparison Message-ID: <40472@cup.portal.com> Date: 23 Mar 91 05:09:23 GMT Organization: The Portal System (TM) Lines: 15 What should a compiler do with the comparison in this example: unsigned int a; a = 5; if (a > -1) .... Since all of the possible values for a are positive, the comparison should always be true and the compiler should process this as though it were written if (1) Correct? Does the standard address this case? ++PLS