diff --git a/compiler/ccgtypes.nim b/compiler/ccgtypes.nim index 94091e5814..a408b55e88 100644 --- a/compiler/ccgtypes.nim +++ b/compiler/ccgtypes.nim @@ -235,7 +235,7 @@ proc isImportedType(t: PType): bool = result = t.sym != nil and sfImportc in t.sym.flags proc isNoDeclType(t: PType): bool = - result = t.sym != nil and {lfNoDecl, lfHeader} * t.sym.loc.flags = {} + result = t.sym != nil and {lfNoDecl, lfHeader} * t.sym.loc.flags != {} proc isImportedCppType(t: PType): bool = let x = t.skipTypes(irrelevantForBackend)