Skip to content

Commit

Permalink
bugfix
Browse files Browse the repository at this point in the history
  • Loading branch information
xensik committed Nov 13, 2024
1 parent 3a06635 commit d5bed62
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/gsc/disassembler.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -371,7 +371,7 @@ auto disassembler::disassemble_call_far(instruction& inst, bool thread) -> void

auto disassembler::disassemble_call_far2(instruction& inst, bool thread) -> void
{
auto offs = script_.read<u32>();
auto offs = script_.read<i32>();
auto file = stack_.read<u64>();
auto name = stack_.read<u64>();

Expand Down Expand Up @@ -577,7 +577,7 @@ auto disassembler::resolve_functions() -> void

auto disassembler::resolve_function(std::string const& index) -> std::string
{
auto addr = std::stoul(index);
auto addr = static_cast<usize>(std::stoul(index));

for (auto const& func : assembly_->functions)
{
Expand Down
2 changes: 1 addition & 1 deletion src/gsc/engine/s2.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ extern std::array<std::pair<u16, char const*>, func_count> const func_list;
extern std::array<std::pair<u16, char const*>, meth_count> const meth_list;
extern std::array<std::pair<u32, char const*>, token_count> const token_list;

context::context() : gsc::context(props::str4 | props::tok4 | props::waitframe | props::boolnotand | props::offs8,
context::context() : gsc::context(props::str4 | props::waitframe | props::boolnotand | props::offs8,
engine::s2, endian::little, system::pc, max_string_id)
{
code_map_.reserve(code_list.size());
Expand Down

0 comments on commit d5bed62

Please sign in to comment.