Files
guru/dev-lang/swift/files/swift-6.0.3-r2/indexstoredb-constant.patch
Itai Ferber 9a53f6b4f4 dev-lang/swift: drop older 6.0.3 revisions
Cleans up pre-r2 ebuild revisions.

Signed-off-by: Itai Ferber <itai@itaiferber.net>
2025-12-13 07:43:50 -05:00

20 lines
898 B
Diff

# Prior to C23, the C standard restricts enum values to the range of `int`;
# relaxing this is a GNU extension that Clang follows. On LLVM-profile systems,
# though, this appears to not be enabled by default, causing Clang to complain
# that `1 << 63` is not a compile-time expression (since it overflows an `int`
# and can't be computed at compile-time). This can be suppressed by causing the
# enum to be interpreted explicitly as containing `unsigned long long` values
# instead.
--- a/indexstore-db/include/CIndexStoreDB/CIndexStoreDB.h
+++ b/indexstore-db/include/CIndexStoreDB/CIndexStoreDB.h
@@ -82,7 +82,7 @@ typedef enum {
INDEXSTOREDB_SYMBOL_ROLE_REL_IBTYPEOF = 1 << 17,
INDEXSTOREDB_SYMBOL_ROLE_REL_SPECIALIZATIONOF = 1 << 18,
- INDEXSTOREDB_SYMBOL_ROLE_CANONICAL = 1 << 63,
+ INDEXSTOREDB_SYMBOL_ROLE_CANONICAL = 1ULL << 63,
} indexstoredb_symbol_role_t;
typedef enum {