Operators '>>' and '&' do not work correctly with Quad types

Found an issue in SpiderBasic ? Please report it here !
KeyPusher
Posts: 2
Joined: Sat Aug 16, 2025 11:05 am

Operators '>>' and '&' do not work correctly with Quad types

Post by KeyPusher »

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

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