diff --git a/src/builders/module.rs b/src/builders/module.rs index a8aeccd635..6eaaf51c0c 100644 --- a/src/builders/module.rs +++ b/src/builders/module.rs @@ -56,8 +56,8 @@ impl ModuleBuilder { module: ModuleEntry { size: mem::size_of::() as u16, zend_api: ZEND_MODULE_API_NO, - zend_debug: if PHP_DEBUG { 1 } else { 0 }, - zts: if PHP_ZTS { 1 } else { 0 }, + zend_debug: u8::from(PHP_DEBUG), + zts: u8::from(PHP_ZTS), ini_entry: ptr::null(), deps: ptr::null(), name: ptr::null(),