ref: 65aa3de5e4ceb60117b2d65a8f5f8d8c60fa357a
parent: 8c4a235ef01d3aae2c411954eb53460155f44a51
author: Sigrid Solveig Haflínudóttir <sigrid@ftrv.se>
date: Mon Mar 13 18:31:05 EDT 2023
clarify conv_to_uint64 existence
--- a/operators.c
+++ b/operators.c
@@ -92,9 +92,9 @@
CONV_TO_INTTYPE(int32, int32_t)
CONV_TO_INTTYPE(uint32, uint32_t)
-// this is needed to work around a possible compiler bug
-// casting negative floats and doubles to uint64. you need
-// to cast to int64 first.
+// this is needed to work around an UB casting negative
+// floats and doubles to uint64. you need to cast to int64
+// first.
uint64_t conv_to_uint64(void *data, numerictype_t tag)
{
int64_t s;