We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 53fb1d3 commit a2fc1d1Copy full SHA for a2fc1d1
src/lpython/parser/parser_stype.h
@@ -112,7 +112,10 @@ static_assert(std::is_trivial<YYSTYPE>::value);
112
// Ensure the YYSTYPE size is equal to Vec<AST::ast_t*>, which is a required member, so
113
// YYSTYPE must be at least as big, but it should not be bigger, otherwise it
114
// would reduce performance.
115
+// A temporary fix for PowerPC 32-bit, where the following assert fails with (16 == 12).
116
+#ifndef __ppc__
117
static_assert(sizeof(YYSTYPE) == sizeof(Vec<LPython::AST::ast_t*>));
118
+#endif
119
120
static_assert(std::is_standard_layout<Location>::value);
121
static_assert(std::is_trivial<Location>::value);
0 commit comments