fix unexpected cast for integer. refs #1696
Merge branch 'master' of github.com:mroonga/mroonga