9front - general discussion about 9front
 help / color / mirror / Atom feed
* compiler bug: erroneous "useless or misleading comparison"
@ 2018-11-18 10:48 Julius Schmidt
  0 siblings, 0 replies; only message in thread
From: Julius Schmidt @ 2018-11-18 10:48 UTC (permalink / raw)
  To: 9front

 	u8int x, y;

 	x = 0xff;
 	y = 0xc0;
 	if((s8int)(x & y) >= 0)
 		print("help\n");

compiles correctly but prints a warning

warning: test.c:11 useless or misleading comparison: UINT >= 0


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2018-11-18 10:48 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-11-18 10:48 compiler bug: erroneous "useless or misleading comparison" Julius Schmidt

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).