Hi, in the gmp 5.0.2 documentation, The OLD_SIZE parameters to REALLOCATE_FUNCTION and FREE_FUNCTION are... ^^^^^^^^ However in FREE_FUNCTION the 2nd parameter is SIZE and not OLD_SIZE. Paul Zimmermann