altos/scheme: Replace memory pool macros with inlines
[fw/altos] / src / scheme / ao_scheme_poly.c
index 25ac6d67d1eea6371e9f5cb7e9ad3828c4ee784e..0cffc19674db5428294a329adc401d13079afe0a 100644 (file)
@@ -65,7 +65,7 @@ ao_scheme_poly(const void *addr, ao_poly type) {
        const uint8_t   *a = addr;
        if (a == NULL)
                return AO_SCHEME_NIL;
-       if (AO_SCHEME_IS_CONST(a))
+       if (ao_scheme_is_const_addr(a))
                return AO_SCHEME_CONST | (a - ao_scheme_const + 4) | type;
        return (a - ao_scheme_pool + 4) | type;
 }