FLAMEGPU / FLAMEGPU2

FLAME GPU 2 is a GPU accelerated agent based modelling framework for CUDA C++ and Python
https://flamegpu.com
MIT License
99 stars 19 forks source link

BugFix: Edgecase in handling standalone msg input would break transpilation. #1143

Closed Robadob closed 8 months ago

Robadob commented 8 months ago

Adds a test that covers the previous error, and moves the standalone msg test into it's own case.

Closes #1141

Additionally I noticed and fixed that foo = int(1) translates to auto foo = int(1); rather than what I expected auto foo = static_cast<int>(1);. The existing cast code only looked for numpy type casting (which is handled differently as the AST sees it as a member function).