Applied Rene Rebe's patch to fix compilation with gcc-4.3 (identical
authorchristian.plesner.hansen@gmail.com <christian.plesner.hansen@gmail.com@ce2b1a6d-e550-0410-aec6-3dcde31c8c00>
Wed, 3 Sep 2008 08:19:44 +0000 (08:19 +0000)
committerchristian.plesner.hansen@gmail.com <christian.plesner.hansen@gmail.com@ce2b1a6d-e550-0410-aec6-3dcde31c8c00>
Wed, 3 Sep 2008 08:19:44 +0000 (08:19 +0000)
to Seo Sanghyeon and Koda's).  Yay, our first patch!

git-svn-id: http://v8.googlecode.com/svn/branches/bleeding_edge@119 ce2b1a6d-e550-0410-aec6-3dcde31c8c00

src/objects-inl.h
src/platform-linux.cc

index 7edbd529b80bb9eb1806b00494008b7f55c4bf6c..37919f1f8ab9e4512f2ca874d423f3bc7a61afdb 100644 (file)
@@ -246,7 +246,7 @@ bool Object::IsJSFunction() {
 }
 
 
-template <> static inline bool Is<JSFunction>(Object* obj) {
+template <> inline bool Is<JSFunction>(Object* obj) {
   return obj->IsJSFunction();
 }
 
@@ -293,7 +293,7 @@ bool Object::IsJSArray() {
 }
 
 
-template <> static inline bool Is<JSArray>(Object* obj) {
+template <> inline bool Is<JSArray>(Object* obj) {
   return obj->IsJSArray();
 }
 
index 050375e7f5cd9a20ac2ec05dbb5f6d42a5e97a8b..e19faad29909e5c90445e822cec8ab251332fbcf 100644 (file)
@@ -295,7 +295,7 @@ void OS::LogSharedLibraryAddresses() {
     int bytes_read = -1;
     do {
       bytes_read++;
-      if (bytes_read > MAP_LENGTH - 1)
+      if (bytes_read >= MAP_LENGTH - 1)
         break;
       int result = read(fd, buffer + bytes_read, 1);
       // A read error means that -1 is returned.