fix: correctly set a bit in UInt<>::SetBitInWord(...) method

In the UInt<value_size>::SetBitInWord(...) method for non GNU
version there was an error in parameters passed to a intrinsic
_bittestandset64(...) function.

This affects only the 64 bit build for non GNU version
(such as Microsoft compiler) and only when TTMATH_NOASM
is not defined.

reported by: Victor <victor.tashkent at gmail.com>
This commit is contained in:
tomasz.sowa committed 2026-11-17 00:58:43 +01:00
1 parent aad580f51e
commit 5c85249eaf
1 file changed
+1 -1
+1 -1
View File
@@ -1026,7 +1026,7 @@ namespace ttmath
#ifndef __GNUC__
old_bit = _bittestandset64((__int64*)&value,bit) != 0;
old_bit = _bittestandset64((__int64*)&v,bit) != 0;
#endif