User talk:Jonhboy Resident

From Second Life Wiki
Jump to navigation Jump to search

I saw your additions to Right Shift and I find them troubling. When I wrote the article the code worked. Which is to say that between the writing of the article and now, something has changed. I've gone ahead and created an issue on JIRA for this SCR-241 I would appreciate if you would comment and maybe provide some of the information about the region you were (like what version of the server it was running etc).

I wanted to change how your function is implemented, so it compiles more efficiently, but considering there is a bug at play that I don't understand yet, I didn't think it was wise.

<lsl>integer rightShiftCorrect(integer value, integer count) {

   if(count & 31)
       return (value >> count) & ~(0x80000000 >> (count - 1));
   return value;

}</lsl>

-- Strife (talk|contribs) 12:41, 21 November 2011 (PST)

You are absolutely correct. The code in the article does not work. I will fix it, it's the least I can do. I came into this thinking that I had properly vetted the code and underlying logic, and in reality I had not. The code never worked. I am sorry. *eats crow* -- Strife (talk|contribs) 20:10, 21 November 2011 (PST)

Hi Strife: Please, change what you wish and thanks for teaching us so much. Jonhboy Resident 02:54, 23 November 2011 (PST)