summaryrefslogtreecommitdiff
path: root/src/mongo/idl
diff options
context:
space:
mode:
Diffstat (limited to 'src/mongo/idl')
-rw-r--r--src/mongo/idl/basic_types.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mongo/idl/basic_types.h b/src/mongo/idl/basic_types.h
index 35516add195..1df3606aecd 100644
--- a/src/mongo/idl/basic_types.h
+++ b/src/mongo/idl/basic_types.h
@@ -179,7 +179,7 @@ public:
}
auto intVal = stdx::get_if<std::int64_t>(&_w);
invariant(intVal);
- builder->appendNumber("w", static_cast<long long>(*intVal));
+ builder->appendIntOrLL("w", *intVal);
}
WriteConcernW() : _w{1}, _usedDefault{true} {};