Skip to content

Commit 3d26279

Browse files
committed
[Fix] mpt/textfile/textfile.hpp: Fix debug builds.
git-svn-id: https://source.openmpt.org/svn/openmpt/trunk/OpenMPT@24789 56274372-70c3-4bfc-bfc3-4c3a0b034d27
1 parent a15177e commit 3d26279

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/mpt/textfile/textfile.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -310,7 +310,7 @@ inline std::vector<std::byte> encode(encoding encoding, const mpt::ustring & tex
310310
mpt::append(result, mpt::byte_cast<mpt::const_byte_span>(mpt::as_span(mpt::transcode<std::string>(mpt::common_encoding::utf8, text))));
311311
break;
312312
case encoding::type::locale:
313-
assert(encoding.header != TextFileEncoding::Header::BOM);
313+
assert(encoding.header != encoding::header::bom);
314314
mpt::append(result, mpt::byte_cast<mpt::const_byte_span>(mpt::as_span(mpt::transcode<std::string>(mpt::logical_encoding::locale, text))));
315315
break;
316316
}

0 commit comments

Comments
 (0)