소스 검색

[cpp] Fix hasMarkFunc condition

Hugh Sanderson 8 년 전
부모
커밋
f0f350ed9b
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  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 *)