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:
1 file changed
+1
-1
@@ -1026,7 +1026,7 @@ namespace ttmath
|
||||
|
||||
|
||||
#ifndef __GNUC__
|
||||
old_bit = _bittestandset64((__int64*)&value,bit) != 0;
|
||||
old_bit = _bittestandset64((__int64*)&v,bit) != 0;
|
||||
#endif
|
||||
|
||||
|
||||
|
||||
Reference in new issue
Block a user