I replaced the fancy “” quotes with ascii " quotes, for better compatibility with editors and compilers (visual C++ was complaining).
I also fixed a few places where visual C++ was complaining about implicit double->float conversions.
I fixed some double->float conversions using fabsf and fmaxf, which are c99. We can switch them if you want to support older versions of C for whatever reason.
I replaced the fancy “” quotes with ascii " quotes, for better compatibility with editors and compilers (visual C++ was complaining).
I also fixed a few places where visual C++ was complaining about implicit double->float conversions.
I fixed some double->float conversions using fabsf and fmaxf, which are c99. We can switch them if you want to support older versions of C for whatever reason.