fix small undefined behavior
Merge pull request #1 from matter123/master

fix small undefined behavior