Commit 1766d4b5 authored by floitschV8@gmail.com's avatar floitschV8@gmail.com

Don't create empty vectors using SubVector.

Fixes build-breakage.

TBR: whesse@chromium.org

Review URL: http://codereview.chromium.org/4168002

git-svn-id: http://v8.googlecode.com/svn/branches/bleeding_edge@5710 ce2b1a6d-e550-0410-aec6-3dcde31c8c00
parent 83f0be36
......@@ -128,7 +128,7 @@ static Vector<const char> TrimLeadingZeros(Vector<const char> buffer) {
return buffer.SubVector(i, buffer.length());
}
}
return buffer.SubVector(0, 0);
return Vector<const char>(buffer.start(), 0);
}
......@@ -138,7 +138,7 @@ static Vector<const char> TrimTrailingZeros(Vector<const char> buffer) {
return buffer.SubVector(0, i + 1);
}
}
return buffer.SubVector(0, 0);
return Vector<const char>(buffer.start(), 0);
}
......
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