Fix an integer overflow bug in vdbesort.c.