[Guido] > Long digits are only 15 bits, so if you change it to return an > unsigned short that shouldn't matter. Dunno if there's magic for > negative numbers though (in memory, the length is negative, but the > digits are not). The marshal format is the same: signed length and unsigned digits. The signed length goes thru [rw]_long.