Re: C'

dvanhorn <[email protected]>
Newsgroups gmane.org.ballistichelmet.lambda
Message-ID <[email protected]>
Jon wrote:
> dvanhorn wrote:
> 
>>int is_factor(int y, int x) {
>>  ((y == 0) || ((x % y) == 0));
>>}
> 
> shouldn't it be:
> 
> return ((y==0) || ((x % y) == 0));

Ah shit!  Me and my expression-based thinking.  That's the fix.

Thanks Jon.

-d
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.