Fix improper calculation of gmtDelta - was using Mac toolbox BitTest routine to test the wrong bit, changed to a simpler & test. Checking in with permission of cyeh.
git-svn-id: svn://10.0.0.236/trunk@17539 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
@@ -121,8 +121,8 @@ long GMTDelta()
|
||||
|
||||
MyReadLocation(&loc);
|
||||
gmtDelta = loc.u.gmtDelta & 0x00FFFFFF;
|
||||
if (BitTst((Ptr)&gmtDelta, 23))
|
||||
gmtDelta = gmtDelta | 0xFF000000;
|
||||
if ((gmtDelta & 0x00800000) != 0)
|
||||
gmtDelta |= 0xFF000000;
|
||||
return gmtDelta;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user