junrushao commented on issue #357: URL: https://github.com/apache/tvm-ffi/issues/357#issuecomment-3685570017
> add a compile-time check and prevent silent overflow That would make more sense if we check overflow strictly - we used to have this check in TVM IIRC. More specifically, you may want to add an `if constexpr (Int is uint64)` here: https://github.com/apache/tvm-ffi/blob/0d8fec88eca5acaeaa7e771003d183c31711574a/include/tvm/ffi/type_traits.h#L281-L285 and if `Int` is `uint64`, it checks overflow -- 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] --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
