fix warning

"Commas at the end of enumerator lists are a C++11 extension"
fix implicit cast warnings

(Implicit conversion turns floating-point number into integer: 'double' to 'uint64_t' (aka 'unsigned long long'))
Merge pull request #90 from diederich/fix/warning

fix warning