diff --git a/atdna/main.cpp b/atdna/main.cpp index e1cb6ec..7acd2c2 100644 --- a/atdna/main.cpp +++ b/atdna/main.cpp @@ -681,13 +681,13 @@ class ATDNAEmitVisitor : public clang::RecursiveASTVisitor { if (directionVal == 0) { outputNodes.emplace_back(NodeType::DoSeek, std::move(fieldName), - "("s.append(offsetExprStr).append(", athena::Begin, s)"), false); + "("s.append(offsetExprStr).append(", athena::SeekOrigin::Begin, s)"), false); } else if (directionVal == 1) { outputNodes.emplace_back(NodeType::DoSeek, std::move(fieldName), - "("s.append(offsetExprStr).append(", athena::Current, s)"), false); + "("s.append(offsetExprStr).append(", athena::SeekOrigin::Current, s)"), false); } else if (directionVal == 2) { outputNodes.emplace_back(NodeType::DoSeek, std::move(fieldName), - "("s.append(offsetExprStr).append(", athena::End, s)"), false); + "("s.append(offsetExprStr).append(", athena::SeekOrigin::End, s)"), false); } } else if (!tsDecl->getName().compare("Align")) { llvm::APSInt align(64, 0);