Allow boolean comparisons; update element::Type::operator== to also compare m_cname (#214)
This adds support for > < >= <= on bool, which by the type checker's standards should have been allowed anyway. Also, this bug had presenting in a different way from expected (should have thrown "unhandled element type" from external_function, instead bonked because it incorrectly dispatched on int8_t). This was due to element::Type::operator== comparing only size, signedness, and floatiness, meaning that char and signed char (aka int8_t) look the same. Fixed by adding a test for m_cname equality.
Showing
Please
register
or
sign in
to comment