pubby/nesfab

Can't compile hang_glider

Closed this issue · 3 comments

`terminate called after throwing an instance of 'compiler_error_t'
what(): game.fab:14:19: error: Int value of 65302 cannot be represented in type U. (Implicit type conversion)
14 | ct U dead_color = $16
^^^
note: Add an explicit cast operator to override.

Aborted (core dumped)
`

I also got a bunch of warnings while compiling the compiler.

pubby commented

This sounds like the same issue as #2 .

pubby commented

Oops, it looks like I missed a fix to char_to_int.

I pushed another fix to master. I think it should work now.

It compiles a ROM that at least runs under FCEUX now.