Rune - Fix interpreter array index typing
authorMatthew Dillon <dillon@apollo.backplane.com>
Sun, 4 Mar 2018 05:59:32 +0000 (21:59 -0800)
committerMatthew Dillon <dillon@apollo.backplane.com>
Sun, 4 Mar 2018 05:59:32 +0000 (21:59 -0800)
commita7369cb16623309bfbdc7df99eb6d24d54e487b9
treec585c43a3b99a139687339cea484ec12b8d9e9f0
parent79bf54b2263c0eeaf006f3c5627ae889cd2aa244
Rune - Fix interpreter array index typing

* Use ex_Run64 for RunAryExp() and RunAddrAryExp().  Also,
  RunAddrAryExp() was previously assuming a 32-bit array index.
  This also fixes that.

* Fix a bug in RunCachedConstantExp() when processing unsigned
  integers.  We were testing TF_ISINTEGER before TF_ISUNSIGNED.
  But TF_ISINTEGER also covers TF_ISUNSIGNED.  Process TF_ISUNSIGNED
  first.

* Optimize content adjustments for arrays.  Only iterate the array
  if its content contains the capabilities being adjusted.

* Code cleanup.
libgen/run_exp.c
libgen/run_refstor.c