[REBOL] Re: Arithmetic shifts
From: greggirwin:mindspring at: 17-Aug-2004 15:07
Hi Jorge,>> n: to-integer (n / 2)JAM> But that fails for n=-1. It yields 0, an arithmetic shift should return JAM> -1. What it should return depends on whether you want a signed or unsigned shift; both are valid. Glad you figured out a solution though. -- Gregg