toastynerd/nesasm

Errors Compiling (NULL Pointer Errors / Possible Solution)

Opened this issue · 0 comments

Hi!
When compiling on Arch Linux through the make command, i would get this issue(also a warning, though i won't add it to make this message a bit shorter):

pcx.c:293:38: error: assignment to ‘int’ from ‘void *’ makes integer from pointer without a cast [-Wint-conversion]
  293 |                         expr_lablcnt = NULL;

Something that can be solved simply by changing the NULL value to a 0 value, that way it will compile without a error.

it is probably not recommended, but it works to make it work properly when compiling with make

lines to change are just 293 from pcx.c from function pcx_get_args

Hope this helps someone out there, though still, I am sure the developer wouldn't recommend modifying NULL pointers randomly.