Update sortheapgen.c

small fix.