add method incorrectly returned an int instead of a long.
Authored by: keess 2008-07-02
Parent: [r2073]
Child: [r2075]