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

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

[Done] 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
Fred
Site Admin
Posts: 1835
Joined: Mon Feb 24, 2014 10:51 am

Re: [Done] Operators '>>' and '&' do not work correctly with Quad types

Post by Fred »

The binary operator are limited to 32-bit in JS, I will update the doc to reflect this.
Post Reply