Skip to content

Commit 9ba22f7

Browse files
timp87sparkprime
authored andcommitted
abort() instead of brake for json::value_t::binary case as it should never happen
1 parent f3ab8a7 commit 9ba22f7

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

core/vm.cpp

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1711,8 +1711,9 @@ class Interpreter {
17111711
abort();
17121712
}
17131713

1714-
case json::value_t::binary:
1715-
break;
1714+
case json::value_t::binary: {
1715+
abort();
1716+
}
17161717
}
17171718
}
17181719

0 commit comments

Comments
 (0)