User talk:Jonhboy Resident

From Second Life Wiki
Revision as of 13:41, 21 November 2011 by Strife Onizuka (talk | contribs) (Right Shift)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
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)