Ver código fonte

fix win build prob

David Rose 24 anos atrás
pai
commit
095e4c94af
1 arquivos alterados com 1 adições e 1 exclusões
  1. 1 1
      panda/src/express/dcast.cxx

+ 1 - 1
panda/src/express/dcast.cxx

@@ -37,7 +37,7 @@ _dcast_verify(TypeHandle want_handle, size_t want_size,
   if (get_verify_dcast()) {
   if (get_verify_dcast()) {
     if ((ptr == (const TypedObject *)NULL)
     if ((ptr == (const TypedObject *)NULL)
 #if defined(_DEBUG) && defined(_WIN32)
 #if defined(_DEBUG) && defined(_WIN32)
-        || IsBadWritePtr(ptr, want_size)
+        || IsBadWritePtr((TypedObject *)ptr, want_size)
 #endif
 #endif
         ) {
         ) {
       express_cat->warning()
       express_cat->warning()