Skip to content

Commit

Permalink
Merge pull request #2861 from ahoppen/6.0/allow-build-in-cxx-interop-…
Browse files Browse the repository at this point in the history
…mode

[6.0] Allow building swift-syntax in C++ interop mode
  • Loading branch information
ahoppen authored Sep 25, 2024
2 parents cb53fa1 + 0a8a8a1 commit 0687f71
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Sources/_SwiftSyntaxCShims/include/AtomicBool.h
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ typedef struct {
} AtomicBool;

static inline AtomicBool *_Nonnull swiftsyntax_atomic_bool_create(bool initialValue) {
AtomicBool *atomic = malloc(sizeof(AtomicBool));
AtomicBool *atomic = (AtomicBool *)malloc(sizeof(AtomicBool));
atomic->value = initialValue;
return atomic;
}
Expand Down

0 comments on commit 0687f71

Please sign in to comment.