[SCM] WebKit Debian packaging branch, debian/unstable, updated. debian/1.1.15-1-40151-g37bb677
kocienda
kocienda at 268f45cc-cd09-0410-ab3c-d52691b4dbfc
Sat Sep 26 08:18:15 UTC 2009
The following commit has been merged in the debian/unstable branch:
commit ab98041ccf00c4584f6e9655cdd60b33df47aece
Author: kocienda <kocienda at 268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Date: Thu Dec 11 21:43:40 2003 +0000
Reviewed by Darin
* WebCoreSupport.subproj/WebBridge.m: time_t is a signed type, so
casting -1 to a time_t does not work to make a max value.
We'll go with INT_MAX.
git-svn-id: http://svn.webkit.org/repository/webkit/trunk@5767 268f45cc-cd09-0410-ab3c-d52691b4dbfc
diff --git a/WebKit/ChangeLog b/WebKit/ChangeLog
index 6929925..c7febee 100644
--- a/WebKit/ChangeLog
+++ b/WebKit/ChangeLog
@@ -1,5 +1,13 @@
2003-12-11 Ken Kocienda <kocienda at apple.com>
+ Reviewed by Darin
+
+ * WebCoreSupport.subproj/WebBridge.m: time_t is a signed type, so
+ casting -1 to a time_t does not work to make a max value.
+ We'll go with INT_MAX.
+
+2003-12-11 Ken Kocienda <kocienda at apple.com>
+
Reviewed and C++ heavy-lifting by Darin
Fix warnings in C++ files.
diff --git a/WebKit/WebCoreSupport.subproj/WebBridge.m b/WebKit/WebCoreSupport.subproj/WebBridge.m
index 9622e16..857f602 100644
--- a/WebKit/WebCoreSupport.subproj/WebBridge.m
+++ b/WebKit/WebCoreSupport.subproj/WebBridge.m
@@ -484,7 +484,10 @@
return [[[self dataSource] request] cachePolicy] == NSURLRequestReloadIgnoringCacheData;
}
-#define MAX_TIME_T ((time_t)-1)
+// We would like a better value for a maximum time_t,
+// but there is no way to do that in C with any certainty.
+// INT_MAX should work well enough for our purposes.
+#define MAX_TIME_T ((time_t)INT_MAX)
- (time_t)expiresTimeForResponse:(NSURLResponse *)response
{
--
WebKit Debian packaging
More information about the Pkg-webkit-commits
mailing list