9fans - fans of the OS Plan 9 from Bell Labs
 help / color / mirror / Atom feed
* [9fans] missing diagnostic?
@ 2008-11-20 22:08 erik quanstrom
  2008-11-20 23:02 ` Charles Forsyth
  0 siblings, 1 reply; 3+ messages in thread
From: erik quanstrom @ 2008-11-20 22:08 UTC (permalink / raw)
  To: 9fans

i was expecting kenc to complain about the
a < 0 test, which can never be true.

int
fetchicmp(Fetchi *f1, Fetchi *f2)
{
	uvlong a, b;

	a = f1->uid;
	b = f2->uid;

	a -= b;
	if(a > 0)
		return 1;
	if(a < 0)
		return -1;
	return 0;
}

- erik



^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2008-11-20 23:02 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2008-11-20 22:08 [9fans] missing diagnostic? erik quanstrom
2008-11-20 23:02 ` Charles Forsyth
2008-11-20 22:54   ` erik quanstrom

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).