Website Summary Files Commits Branches @commit @diff @stats
path: root / spasm / src / spasm.cpp
diff options
context:
space:
mode:
1 files changed, 4 insertions, 4 deletions
-rw-r--r--spasm/src/spasm.cpp8
diff --git a/spasm/src/spasm.cpp b/spasm/src/spasm.cpp
index 6a62c90..94086a6 100644
--- a/spasm/src/spasm.cpp
+++ b/spasm/src/spasm.cpp
@@ -331,7 +331,7 @@ void Spasm::gotrue(reg_t a0, reg_t a1)
{
if (get_local(a0))
{
- m_PC = a1;
+ go(a1);
}
}
@@ -344,7 +344,7 @@ void Spasm::gofalse(reg_t a0, reg_t a1)
{
if (!get_local(a0))
{
- m_PC = a1;
+ go(a1);
}
}
@@ -354,7 +354,7 @@ void Spasm::gofalse(reg_t a0, reg_t a1)
*/
void Spasm::go(reg_t a0)
{
- m_PC = a0;
+ m_PC = PC_t(a0);
}
/*!
@@ -507,7 +507,7 @@ int64_t Spasm::read_integer(size_t size)
data_t Spasm::read_string(size_t size)
{
- const auto length = read_integer(size);
+ const auto length = size_t(read_integer(size));
const auto s = reinterpret_cast<const char*>(&m_ByteCode[m_PC]);
m_PC += length;
const auto value = m_Strings.Get(s, length);