Fix conversion fail when build with -O2 fail (#1193)

* fix conversion fail when compile with gcc -O2

* fix format check error

* fix format check error
1 file changed