Skip to content

Commit 6331179

Browse files
authored
Silence macos conversion warnings (rust-lang#374)
1 parent e6123aa commit 6331179

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

enzyme/Enzyme/CApi.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -376,11 +376,11 @@ LLVMValueRef EnzymeCreatePrimalAndGradient(
376376
.retType = (DIFFE_TYPE)retType,
377377
.constant_args = nconstant_args,
378378
.uncacheable_args = uncacheable_args,
379-
.returnUsed = returnValue,
380-
.shadowReturnUsed = dretUsed,
379+
.returnUsed = (bool)returnValue,
380+
.shadowReturnUsed = (bool)dretUsed,
381381
.mode = (DerivativeMode)mode,
382382
.freeMemory = true,
383-
.AtomicAdd = AtomicAdd,
383+
.AtomicAdd = (bool)AtomicAdd,
384384
.additionalType = unwrap(additionalArg),
385385
.typeInfo = eunwrap(typeInfo, cast<Function>(unwrap(todiff))),
386386
},

0 commit comments

Comments
 (0)