Skip to content

Commit

Permalink
Fix windows warning
Browse files Browse the repository at this point in the history
Signed-off-by: Harry Chiang <[email protected]>
  • Loading branch information
harry900831 committed Sep 13, 2023
1 parent 03d8066 commit 8ddd449
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions include/runtime/stackmgr.h
Original file line number Diff line number Diff line change
Expand Up @@ -155,15 +155,15 @@ class StackManager {
// The POS is the stack size after jumping to the label
HandlerStack.emplace_back(
EndIt, VSize, static_cast<uint32_t>(FrameStack.size()),
static_cast<uint32_t>(HandlerStack.size() - HOffset),
static_cast<uint32_t>(CaughtStack.size() - COffset));
static_cast<uint32_t>(HandlerStack.size()) - HOffset,
static_cast<uint32_t>(CaughtStack.size()) - COffset);
}

// Push handler for try-catch block
void pushHandler(AST::InstrView::iterator EndIt,
uint32_t BlockParamNum) noexcept {
HandlerStack.emplace_back(
EndIt, static_cast<uint32_t>(ValueStack.size() - BlockParamNum),
EndIt, static_cast<uint32_t>(ValueStack.size()) - BlockParamNum,
static_cast<uint32_t>(FrameStack.size()),
static_cast<uint32_t>(HandlerStack.size()),
static_cast<uint32_t>(CaughtStack.size()));
Expand Down

0 comments on commit 8ddd449

Please sign in to comment.