Explorar o código

[cpp] Fix hasMarkFunc condition

Hugh Sanderson %!s(int64=8) %!d(string=hai) anos
pai
achega
f0f350ed9b
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      src/generators/gencpp.ml

+ 1 - 1
src/generators/gencpp.ml

@@ -6078,7 +6078,7 @@ let generate_class_files baseCtx super_deps constructor_deps class_def inScripta
       "0 /* sMemberFields */";
    in
 
-   let hasMarkFunc = (not nativeGen) && not (List.exists is_data_member implemented_fields) in
+   let hasMarkFunc = (not nativeGen) && (List.exists is_data_member implemented_fields) in
 
    if (hasMarkFunc) then begin
       (* Mark static variables as used *)