Skip to content

Commit

Permalink
quench warnings on MSVC
Browse files Browse the repository at this point in the history
  • Loading branch information
wjakob committed Dec 15, 2022
1 parent fd36850 commit ebeed9b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/python/switch.h
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ py::object switch_record_impl(UInt32 indices, py::list funcs, py::args args) {

try {
result = funcs[i-1](*args);
} catch (const std::exception& e) {
} catch (const std::exception&) {
// Special cleanup is necessary for interactive Python sessions
py::object modules = py::module_::import("sys").attr("modules");
if (modules.contains("ipykernel")) {
Expand Down Expand Up @@ -134,7 +134,7 @@ py::object switch_reduce_impl(UInt32 indices, py::list funcs,
jit_var_schedule(index);
}));

uint32_t n_inst = funcs.size();
uint32_t n_inst = (uint32_t) funcs.size();
VCallBucket *buckets = jit_var_vcall_reduce(Backend, nullptr,
indices.index(), &n_inst);

Expand Down

0 comments on commit ebeed9b

Please sign in to comment.