HomePhorge

Fix TypeToken for bool to match TypeNumber

Referenced Files
None
Subscribers
None

Description

Fix TypeToken for bool to match TypeNumber

TypeToken encoded the type bool as uint8_t, which broke type equivalence checking based on TypeNumber (which has a separate value for bool). I fixed the problem by specializing SquashedType so that it preserves bool and does not squash it into an integer type, though bool is integral.
This fix allowed to remove specialization of TypeNumberOf for bool because SquashedType, which is used in the general case, now preserves type bool.

Details

Provenance
Dávid JuhászAuthored on Apr 29 2019, 8:39 PM
juhaszPushed on Apr 29 2019, 9:02 PM
Parents
R20:8ba1d057f4c4: Implement master-to-slave communication in the deluxe interface Ref T138
Branches
Unknown
Tags
Unknown

Event Timeline

Dávid Juhász <juhasz.david.scholar@gmail.com> committed R20:73b56688312f: Fix TypeToken for bool to match TypeNumber (authored by Dávid Juhász <juhasz.david.scholar@gmail.com>).Apr 29 2019, 8:39 PM