From a7cd9d4f8d83024402bacb39786e5e1a018a0a04 Mon Sep 17 00:00:00 2001 From: Dimitar Trendafilov Date: Wed, 14 Nov 2018 23:45:56 +0200 Subject: Spasm can assemble programs on with the new instruction set (#47) * Use checkout as-is, commit as-is * Spasm can assemble programs based on the new instruction set --- spasm/src/asm/token.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'spasm/src/asm/token.cpp') diff --git a/spasm/src/asm/token.cpp b/spasm/src/asm/token.cpp index 6c88bef..4f298cf 100644 --- a/spasm/src/asm/token.cpp +++ b/spasm/src/asm/token.cpp @@ -22,11 +22,11 @@ Token::Token(Token::Token_type type, const char* end) : _type(type), _lineno(lineno) { - if (_type == integer || _type == xinteger) + if (_type == Integer || _type == XInteger) { _value_int = strtol(start, NULL, 0); } - else if (_type == ident) + else if (_type == Ident) { if (end) { -- cgit v1.3.1-23-gd82d