fix 0 == null on C++ target