Fix compile warnings.  Please be careful with size_t and int, and float and double.