More ints changed to size_t in bpt.c