qlibs / sml

C++20 State Machine library
172 stars 7 forks source link

ARM GCC: Test failure and narrowing conversion from int to char #13

Open dcorbeil opened 2 months ago

dcorbeil commented 2 months ago

Hi :)

There are a few issues that have been introduced by 429cd7b for ARM GCC. Namely narrowing of int to char at the index declaration and the transition_table[guards/actions] test failure. See this example: https://godbolt.org/z/h9fGa7nhq

Is there a workaround or a solution apart from using the commit right before?

Thank you for the great library!

HazardyKnusperkeks commented 1 month ago

The fix is, to use a signed char.