Explorar o código

test: explicit checks

Michele Caini hai 1 ano
pai
achega
b8977df86f
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      test/entt/process/process.cpp

+ 1 - 1
test/entt/process/process.cpp

@@ -41,7 +41,7 @@ struct fake_process: entt::process<fake_process<Delta>, Delta> {
     }
 
     void update(typename entt::process<fake_process<Delta>, Delta>::delta_type, void *data) {
-        if(data) {
+        if(data != nullptr) {
             (*static_cast<int *>(data))++;
         }