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
This commit is contained in:
parent
83f0be364e
commit
1766d4b5e4
@ -128,7 +128,7 @@ static Vector<const char> TrimLeadingZeros(Vector<const char> buffer) {
|
|||||||
return buffer.SubVector(i, buffer.length());
|
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, i + 1);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
return buffer.SubVector(0, 0);
|
return Vector<const char>(buffer.start(), 0);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user