fix #7390
Merge pull request #7404 from stevengj/int8float

fix #7390