Re: Go ahead. Ask.
- From: Kenneth Brody <kenbrody@xxxxxxxxxxx>
- Date: Fri, 11 Jun 2010 10:36:08 -0400
On 6/11/2010 9:26 AM, Seebs wrote:
I've removed the explanatory comment. I wrote the following patch.
There were Sound Technical Reasons.
@@ -347,7 +347,7 @@
break;
case 'l':
speed = strtod(optarg,&endp);
- if (speed<= 0 || *endp != '\0')
+ if (speed< 0 || !speed || *endp != '\0')
usage();
limit_rate = speed * 1024;
break;
So you've replaced "less than or equal to zero" with "less than zero or equal to zero"?
Given that this codes looks like a command-line argument parser, I can't imagine there is some nanosecond speed improvement requirement here. Short of a compiler bug, I can't think of anything.
Okay, you asked me to ask you. So, I'm asking you. What "Sound Technical Reasons" could there be for this?
--
Kenneth Brody
.
- Follow-Ups:
- Re: Go ahead. Ask.
- From: Seebs
- Re: Go ahead. Ask.
- From: abuse
- Re: Go ahead. Ask.
- References:
- Go ahead. Ask.
- From: Seebs
- Go ahead. Ask.
- Prev by Date: Re: Who wrote this crap?
- Next by Date: Re: A change, and probably not for the better
- Previous by thread: Go ahead. Ask.
- Next by thread: Re: Go ahead. Ask.
- Index(es):