Messages in this thread | | | Subject | Re: [PATCH] parisc: test off by one in sgl_frem() and dbl_frem() | Date | Sun, 27 Dec 2009 10:10:45 -0500 (EST) | From | "John David Anglin" <> |
| |
> With `while (stepcount-- > 0)' stepcount reaches -1 after the loop. > > Signed-off-by: Roel Kluin <roel.kluin@gmail.com> > --- > arch/parisc/math-emu/dfrem.c | 2 +- > arch/parisc/math-emu/sfrem.c | 2 +- > 2 files changed, 2 insertions(+), 2 deletions(-) > > Unless I am missing something?
Are you sure the correct fix isn't to move the decrement of stepcount into the loop?
Dave -- J. David Anglin dave.anglin@nrc-cnrc.gc.ca National Research Council of Canada (613) 990-0752 (FAX: 952-6602)
| |