NanoMichael / MicroTeX

A dynamic, cross-platform, and embeddable LaTeX rendering library
MIT License
399 stars 66 forks source link

Do not depend on bool being one byte #176

Closed afalkenhahn closed 1 month ago

afalkenhahn commented 1 month ago

The size of the bool data type is implementation-defined. I'm on a platform where gcc defaults to bool being 4 bytes, not 1. Thus we should use u8 here instead of bool to make sure the code is portable.