Fix build error with "-O2"

https://gist.github.com/y-ken/6fd4721b53205631bd49

Reported by Y.Kentaro. Thanks!!!