Skip to content

Commit a21abb5

Browse files
authored
Fix an integer coersion that bothers VC++. (#57)
Signed-off-by: John Plevyak <[email protected]>
1 parent 42c49d8 commit a21abb5

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/null/null_plugin.cc

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -285,7 +285,8 @@ null_plugin::RootContext *NullPlugin::ensureRootContext(uint64_t context_id) {
285285
context_map_[context_id] = std::move(context);
286286
} else {
287287
// Default handlers.
288-
auto context = std::make_unique<null_plugin::RootContext>(context_id, root_id->view());
288+
auto context = std::make_unique<null_plugin::RootContext>(static_cast<uint32_t>(context_id),
289+
root_id->view());
289290
root_context = context->asRoot();
290291
context_map_[context_id] = std::move(context);
291292
}

0 commit comments

Comments
 (0)