Why is mp_size_t signed?

Torbjorn Granlund tg at swox.com
Mon Feb 2 21:50:14 CET 2004

Brian Hurt <bhurt at spnz.org> writes:

  Stupid question: Why is mp_size_t a *signed* integer?

Because that simplifies and speeds code.  The unsigned size_t
is the root of countless bugs where calculations
yield a negative number.


More information about the gmp-devel mailing list