Operators '>>' and '&' do not work correctly with Quad types
Posted: Sat Aug 16, 2025 12:17 pm
The operators '>>' and '&' seem to only process the first 32 bits for Quad types. The last 32 bits are written to zero.
The Debug command also does not seem to work correctly in connection with the '<<' operator.
SpiderBasic Version 3.10, Windows 10 x64
The Debug command also does not seem to work correctly in connection with the '<<' operator.
SpiderBasic Version 3.10, Windows 10 x64
Code: Select all
QuadTestValue.q=Pow(2,40);+256
QuadValue.q = QuadTestValue : Debug QuadValue ; ok
QuadValue.q = QuadTestValue : Debug QuadValue<<1 ; not ok
QuadValue.q = QuadTestValue : Debug Str(QuadValue<<1) ; ok
QuadValue.q = QuadTestValue : QuadValue<<1 : Debug QuadValue ; ok
QuadValue.q = QuadTestValue : Debug QuadValue>>1 ; not ok
QuadValue.q = QuadTestValue : QuadValue>>1 : Debug QuadValue ; not ok
QuadValue.q = QuadTestValue : Debug QuadValue & QuadValue ; not ok
QuadValue.q = QuadTestValue : QuadValue & QuadValue : Debug QuadValue; not ok