isapego commented on code in PR #1440:
URL: https://github.com/apache/ignite-3/pull/1440#discussion_r1046773827
##########
modules/platforms/cpp/ignite/protocol/utils.cpp:
##########
@@ -28,20 +28,73 @@
namespace ignite::protocol {
+/**
+ * Check if int value fits in @c T.
+ *
+ * @tparam T Int type to fit value to.
+ * @param value Int value.
+ */
+template<typename T>
+inline void check_int_fits(std::int64_t value) {
Review Comment:
In C implementation you can only check for `MSGPACK_OBJECT_NEGATIVE_INTEGER`
or `MSGPACK_OBJECT_POSITIVE_INTEGER`
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]