change NULL to INT2PTR(0), for clarity