25 Sep 2007 ~ 2:36pmLinc
I'd be willing to bet it's not a coincidence that 65,535 is 2^16 -1, which is also the max value of a smallint ("small" integer) in several varieties of database software.
[/geekery]
//edit: Anyone want to humor me and see if it does anything screwy for values resulting in 16777215? That's the max for medint (2^24 -1). I'm using OpenOffice so I can't test it.