delorie.com/archives/browse.cgi | search |
Date: | Tue, 29 Mar 1994 17:08:12 +0200 |
From: | mitnits AT bgumail DOT bgu DOT ac DOT il (Roman Mitnitski ) |
To: | djgpp AT sun DOT soe DOT clarkson DOT edu |
Subject: | Sizeof bug??? |
Hi Please, look at the following chunk of code, and compilation results, and tell me, can I ignore the warning,and must there be a worning at all??? main() { long UR=1; if (sizeof(long)>4) { UR=UR<<32; } } here's the compilation output: bug.c: In function `main': bug.c:6: warning: left shift count >= width of type But according to the programm, it must be Ok. Thanx in advance. Roman
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |