| Index: Source/wtf/ArrayBufferView.h
|
| diff --git a/Source/wtf/ArrayBufferView.h b/Source/wtf/ArrayBufferView.h
|
| index 769f5b690e2b17d20c66315bc32e0892aada0269..21698b30d1cefa71baef0f4ff47e6b87cc9c7414 100644
|
| --- a/Source/wtf/ArrayBufferView.h
|
| +++ b/Source/wtf/ArrayBufferView.h
|
| @@ -20,7 +20,7 @@
|
| * PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY
|
| * OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
|
| * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
|
| - * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
| + * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
| */
|
|
|
| #ifndef ArrayBufferView_h
|
| @@ -145,7 +145,7 @@ bool ArrayBufferView::setImpl(ArrayBufferView* array, unsigned byteOffset)
|
| // Out of range offset or overflow
|
| return false;
|
| }
|
| -
|
| +
|
| char* base = static_cast<char*>(baseAddress());
|
| memmove(base + byteOffset, array->baseAddress(), array->byteLength());
|
| return true;
|
| @@ -159,7 +159,7 @@ bool ArrayBufferView::setRangeImpl(const char* data, size_t dataByteLength, unsi
|
| // Out of range offset or overflow
|
| return false;
|
| }
|
| -
|
| +
|
| char* base = static_cast<char*>(baseAddress());
|
| memmove(base + byteOffset, data, dataByteLength);
|
| return true;
|
| @@ -173,7 +173,7 @@ bool ArrayBufferView::zeroRangeImpl(unsigned byteOffset, size_t rangeByteLength)
|
| // Out of range offset or overflow
|
| return false;
|
| }
|
| -
|
| +
|
| char* base = static_cast<char*>(baseAddress());
|
| memset(base + byteOffset, 0, rangeByteLength);
|
| return true;
|
|
|