fixed behaviour of NOT operator concerning type checking: address refs are now negated.

git-svn-id: https://svn.code.sf.net/p/acme-crossass/code-0/trunk@152 4df02467-bbd4-4a76-a152-e7ce94205b78
This commit is contained in:
marcobaye 2020-05-10 22:01:04 +00:00
parent e908284773
commit abdea30e33
2 changed files with 2 additions and 2 deletions

View File

@ -1042,7 +1042,7 @@ static void int_handle_monadic_operator(struct number *self, enum op_handle op)
case OPHANDLE_NOT:
self->val.intval = ~(self->val.intval);
self->flags &= ~NUMBER_FITS_BYTE;
refs = self->addr_refs; // no change (FIXME - negate?)
refs = -(self->addr_refs); // negate address ref count
break;
case OPHANDLE_NEGATE:
self->val.intval = -(self->val.intval);

View File

@ -9,7 +9,7 @@
#define RELEASE "0.96.5" // update before release FIXME
#define CODENAME "Fenchurch" // update before release
#define CHANGE_DATE "10 May" // update before release FIXME
#define CHANGE_DATE "11 May" // update before release FIXME
#define CHANGE_YEAR "2020" // update before release
//#define HOME_PAGE "http://home.pages.de/~mac_bacon/smorbrod/acme/"
#define HOME_PAGE "http://sourceforge.net/p/acme-crossass/" // FIXME