fixed clang++ and g++ c++11 "narrowing convertion" compilation errors
Merge pull request #131 from ukreator/upstream_master

fixed clang++ and g++ c++11 "narrowing convertion" compilation errors