🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.nntp
Article #37159

Re: Submitting to Freenix

#37159
From: Arthur Hagen
Date: Thu, 29 Apr 1999 00:00
29 lines
1896 bytes
In article <1rn1zskmwo.fsf@haey.ifi.uio.no>, Kjetil Torgrim Homme <kjetilho@haey.ifi.uio.no> writes:

> Why test when you can read the code? (innd/art.c)
> 
>         if (sp->MaxSize && Data->SizeValue > sp->MaxSize)
>             /* Too big for the site. */
>             continue;
> 
>         if (sp->MinSize && Data->SizeValue < sp->MinSize)
>             /* Too small for the site. */
>             continue;
> 
> ('<' sets MaxSize, '>' sets MinSize.)
> 
> It should work.

Depending on operator precedence is a tricky thing with some compilers,
especially if you turn on too much optimization.  It sure it easy for
an aggressive but brain dead optimizer to find out that sp->MaxSize &&
Data->SizeValue is constant between the two...
So I'll test it out, despite the source really looking like it
*should* work, as I've seen even stranger behaviour.

Regards,
-- 
*Art

Technical Details
Message-ID: <d309g7.eud.ln@flying.broomstick.com>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.nntp.mbox.zip!not-for-mail
References: <7g24e7$ckh$1@info.cs.uofs.edu> <7g5b7l$2ko$1@gondor.sdsu.edu> <ylaevtd7n7.fsf@windlord.stanford.edu> <o5n5g7.a7b.ln@flying.broomstick.com> <Pine.LNX.4.05.9904280839530.14775-100000@penguin.mendelu.cz> <p6u7g7.tdb.ln@flying.broomstick.com> <1rn1zskmwo.fsf@haey.ifi.uio.no>

Show Full Headers
Complete Article Headers
Message-ID: <d309g7.eud.ln@flying.broomstick.com>
Subject: Re: Submitting to Freenix
Date: Thu, 29 Apr 1999 00:00:00 +0000
From: art@flying.broomstick.com (Arthur Hagen)
References: <7g24e7$ckh$1@info.cs.uofs.edu> <7g5b7l$2ko$1@gondor.sdsu.edu> <ylaevtd7n7.fsf@windlord.stanford.edu> <o5n5g7.a7b.ln@flying.broomstick.com> <Pine.LNX.4.05.9904280839530.14775-100000@penguin.mendelu.cz> <p6u7g7.tdb.ln@flying.broomstick.com> <1rn1zskmwo.fsf@haey.ifi.uio.no>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.nntp.mbox.zip!not-for-mail
X-Deja-AN: 472192934
X-Complaints-To: abuse@broomstick.com
X-Trace: kether.broomstick.com 925369410 160927 194.52.172.70 (29 Apr 1999 07:03:30 GMT)
Organization: Broomstick Net Services
Reply-To: art@broomstick.com
NNTP-Posting-Date: 29 Apr 1999 07:03:30 GMT
Newsgroups: news.software.nntp