I am trying to port the code over to HPE NonStop (x86 big endian). Most issues seem simple enough, although signed char vs. unsigned is worrying and I may have to add some casts. The problem I have is to get the following to work on c99:
RSHORT(&s->p[i]) = RSHORT(&TextBTable[(*buf) * 2]);
^
"C:\cygwin64\home\Randall S. Becker\git\distorm\make\nonstop\../../src/textdefs.c", line 45: error(226):
expression must be a modifiable lvalue
I'm looking for the best way to fix this as it is not compatible with older variants (non-gcc) of the c99 compiler. May I request a suggestion that would be acceptable in an eventual pull request to this project?
I am trying to port the code over to HPE NonStop (x86 big endian). Most issues seem simple enough, although signed char vs. unsigned is worrying and I may have to add some casts. The problem I have is to get the following to work on c99:
I'm looking for the best way to fix this as it is not compatible with older variants (non-gcc) of the c99 compiler. May I request a suggestion that would be acceptable in an eventual pull request to this project?