summaryrefslogtreecommitdiff
path: root/src/verify.cc
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2026-03-28 21:19:29 +0100
committerCarl Hetherington <cth@carlh.net>2026-03-28 21:19:29 +0100
commit4f1309aec7787765d3a15853d55245a86e7501c9 (patch)
tree389feb020b690b1fdc026d27e4c4ee2f713c7ab8 /src/verify.cc
parent1c42e6a464ad25a2230540f639fe513d2761d27d (diff)
Fix incorrect invalid FFOC check.
Diffstat (limited to 'src/verify.cc')
-rw-r--r--src/verify.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/verify.cc b/src/verify.cc
index f071f53e..c2ef0d41 100644
--- a/src/verify.cc
+++ b/src/verify.cc
@@ -1725,8 +1725,8 @@ verify_cpl(Context& context, shared_ptr<const CPL> cpl)
auto ffoc = markers_seen.find(Marker::FFOC);
if (ffoc == markers_seen.end()) {
context.add_note(VerificationNote::Code::MISSING_FFOC);
- } else if (ffoc->second.e != 1) {
- context.add_note(VerificationNote::Code::INCORRECT_FFOC, fmt::to_string(ffoc->second.e));
+ } else if (ffoc->second.as_editable_units() != 1) {
+ context.add_note(VerificationNote::Code::INCORRECT_FFOC, fmt::to_string(ffoc->second.as_editable_units()));
}
auto lfoc = markers_seen.find(Marker::LFOC);