Closed LeoPizzo1 closed 7 months ago
Thanks for spotting and reporting @LeoPizzo1 :smiley:
Did it fix the warning? Side note: Do you really need 64 bit indices? I think 32bit is enough for 99.99% use cases
Yes, it is solved.
In any case, no, I do not actually need 64 bit indices: probably I will avoid them.
Anyway, using 32 bit indices I get several other warnings: I am compiling with Level 3 (/W3).
CDT\include\Triangulation.hpp(1947,1): warning C4267: 'initializing': conversion from 'size_t' to 'CDT::VertInd', possible loss of data CDT\include\Triangulation.hpp(1947,1): warning C4267: 'initializing': conversion from 'size_t' to 'const CDT::VertInd', possible loss of data CDT\include\Triangulation.hpp(588,1): warning C4267: 'argument': conversion from 'size_t' to 'CDT::VertInd', possible loss of data CDT\include\Triangulation.hpp(589,1): warning C4267: 'argument': conversion from 'size_t' to 'CDT::VertInd', possible loss of data CDT\include\Triangulation.hpp(1500,1): warning C4267: 'argument': conversion from 'size_t' to 'const CDT::VertInd', possible loss of data
could you check if the warnings a gone?
I actually get the warnings in my GitHub actions CI, I will fix them.
Warnings gone, thanks!
Using the library and defining CDT_USE_64_BIT_INDEX_TYPE, during the compilation I get this warning: CDT\include\Triangulation.hpp(1497,32): warning C4244: 'initializing': conversion from 'const _Ty' to 'CDT::Index', possible loss of data
It refers to:
where
Index
is anunsigned char
, andt.vertices
vector contains anunsigned long long
.