fix bool number to macro
Merge pull request #1870 from ksss/convert_type

fix bool number to macro