Skip to content

Commit 9833500

Browse files
committed
pattern: Fixed endianess not applying enums placed in custom sections
1 parent 11aaef3 commit 9833500

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

lib/include/pl/patterns/pattern.hpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -203,7 +203,8 @@ namespace pl::ptrn {
203203
else return this->m_endian.value_or(this->m_evaluator->getDefaultEndian());
204204
}
205205
virtual void setEndian(std::endian endian) {
206-
if (this->isLocal()) return;
206+
if (m_section == HeapSectionId || m_section == PatternLocalSectionId || m_section == InstantiationSectionId)
207+
return;
207208

208209
this->m_endian = endian;
209210
}

0 commit comments

Comments
 (0)