Use 0 as inert object reference value instead of -1

Towards using Null object for nil objects.
This commit is contained in:
Behdad Esfahbod 2018-05-31 19:28:04 -07:00
parent dcd1b07eea
commit 550a70f801
1 changed files with 1 additions and 1 deletions

View File

@ -41,7 +41,7 @@
/* reference_count */
#define HB_REFERENCE_COUNT_INERT_VALUE -1
#define HB_REFERENCE_COUNT_INERT_VALUE 0
#define HB_REFERENCE_COUNT_POISON_VALUE -0x0000DEAD
#define HB_REFERENCE_COUNT_INIT {HB_ATOMIC_INT_INIT(HB_REFERENCE_COUNT_INERT_VALUE)}