fix compile error

in GCC 4.7.3, auto-type-cast is not procedured
Merge pull request #4 from cubicdaiya/issues/compile_error

fix compile error