From e7b7c5345f6a45e70e208f4ffae02b882bbcd72c Mon Sep 17 00:00:00 2001 From: "sdagley%netscape.com" Date: Tue, 12 Jan 1999 01:22:46 +0000 Subject: [PATCH] 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 --- mozilla/lib/mac/Misc/mactime.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/mozilla/lib/mac/Misc/mactime.c b/mozilla/lib/mac/Misc/mactime.c index a4f58a5a329..f97c66b0f0e 100644 --- a/mozilla/lib/mac/Misc/mactime.c +++ b/mozilla/lib/mac/Misc/mactime.c @@ -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; }