Applied Rene Rebe's patch to fix compilation with gcc-4.3 (identical

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
parent d295ddd9
......@@ -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();
}
......
......@@ -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.
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment