Closed matwey closed 8 years ago
Commit 37ece8e0068c2dc523443d7a0cbfb541852d5197 introduced UB into bit_scan_forward when called with zero agrument.
Check m_type == UNDEFINED explicitly in to_type() Also replace bit_scan_forward return type to int to avoid double conversion.
Commit 37ece8e0068c2dc523443d7a0cbfb541852d5197 introduced UB into bit_scan_forward when called with zero agrument.
Check m_type == UNDEFINED explicitly in to_type() Also replace bit_scan_forward return type to int to avoid double conversion.