Website Summary Files Commits Branches @commit @diff @stats
path: root / spasm / src / asm / lexdump3.cpp
diff options
context:
space:
mode:
Commit2f9dea35cff40a676b4603b8ffbd1f2669a4195a (patch)
Author
 Dimitar Trendafilov <trendafilov.dn@gmail.com>
2021-09-21 21:23:27 +0300
Committer
 Dimitar Trendafilov <trendafilov.dn@gmail.com>
2021-09-21 22:31:27 +0300
Files672d53f7d257df54d2222252bd2441f12b3be950 /spasm/src/asm/lexdump3.cpp
IPL-2f9dea35cff40a676b4603b8ffbd1f2669a4195a.tar
IPL-2f9dea35cff40a676b4603b8ffbd1f2669a4195a.tar.gz
IPL-2f9dea35cff40a676b4603b8ffbd1f2669a4195a.zip
Parent9ee40497ba76829317352ae537e9bcab0a7b043e (diff)
Fix warnings found by clangd
1 files changed, 3 insertions, 3 deletions
-rw-r--r--spasm/src/asm/lexdump3.cpp6
diff --git a/spasm/src/asm/lexdump3.cpp b/spasm/src/asm/lexdump3.cpp
index 4e4ce9e..400058b 100644
--- a/spasm/src/asm/lexdump3.cpp
+++ b/spasm/src/asm/lexdump3.cpp
@@ -44,16 +44,16 @@ int main()
Token token;
token = td.next_token();
- while (token.type() != Token::endinput)
+ while (token.type() != Token::EndInput)
{
token = td.next_token();
Token::Token_type ttype = token.type();
std::cout.width(8);
std::cout << token.lineno();
std::cout << ": " << token_name[ttype];
- if (ttype == Token::integer || ttype == Token::xinteger)
+ if (ttype == Token::Integer || ttype == Token::XInteger)
std::cout << '|' << token.value_int() << '|';
- else if (ttype == Token::ident)
+ else if (ttype == Token::Ident)
std::cout << '|' << token.value_str() << '|';
std::cout << std::endl;
}