GMP documentation bug (mpz_scan0, mpz_scan1)

Torbjorn Granlund tg-this-will-bounce-but-I-am-subscribed-to-the-list-honest at swox.com
Tue Jan 16 20:09:33 CET 2007


Brooks Moses <brooks.moses at codesourcery.com> writes:

  I just came across what I think is some incorrect information in the GMP 
  manual's documentation of mpz_scan0 and mpz_scan1.
  
  GMP version: 4.2.1, from http://www.swox.com/gmp/gmp-man-4.2.1.pdf, 2007-01-09.
  
  In the documentation for the two mpz_scan functions, the following sentence 
  appears:
  
  >If there's no bit found, then ULONG_MAX is returned. This will happen in 
  >mpz_scan0 past the end of a positive number, or mpz_scan1 past the end of 
  >a negative.
  
  This should have "positive" and "negative" swapped, yes?
  
Indeed.

  (Also, pedantically speaking, that should probably have "nonnegative" in 
  place of "positive", since the corrected version is true for zero as well 
  as for positive numbers.)
  
I changed to the pedantically speaking correct form.  :-)

Thanks for reporting this!

-- 
Torbjörn


More information about the gmp-bugs mailing list