in reply to Re^4: porting C code to Perl
in thread porting C code to Perl
to readint nines = 0; int predigit = 0;
int nines, predigit = 0;
instead and this was what I was talking about (and showcasing in the tests). In this situation '= 0' adds nothing.
For 'predigit, nines = 0;': You are totally correct - it does make a difference. I assume this is a bug in the original code which has not been spotted when verifying the result using the widely deployed Eyeball Mark 1 test suite.
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^6: porting C code to Perl
by RonW (Parson) on Oct 25, 2017 at 20:47 UTC | |
Re^6: porting C code to Perl
by marioroy (Prior) on Oct 24, 2017 at 15:57 UTC | |
Re^6: porting C code to Perl
by Anonymous Monk on Oct 24, 2017 at 17:53 UTC |