@@ -255,7 +255,7 @@ class TypedArray {
255255 }
256256
257257 void * buf = buffer->GetIndexedPropertiesExternalArrayData ();
258- char * begin = reinterpret_cast <char *>(buf) + byte_offset;
258+ char * begin = static_cast <char *>(buf) + byte_offset;
259259
260260 if (!checkAlignment (reinterpret_cast <uintptr_t >(begin), TBytes))
261261 return ThrowRangeError (" Byte offset is not aligned." );
@@ -374,7 +374,7 @@ class TypedArray {
374374 // place as if all the data is first copied into a temporary buffer that
375375 // does not overlap either of the arrays, and then the data from the
376376 // temporary buffer is copied into the current array.
377- memmove (reinterpret_cast <char *>(dst_ptr) + offset * TBytes, src_ptr,
377+ memmove (static_cast <char *>(dst_ptr) + offset * TBytes, src_ptr,
378378 src_length * TBytes);
379379 } else { // type[]
380380 if (args[1 ]->Int32Value () < 0 )
@@ -643,7 +643,7 @@ class DataView {
643643
644644 // Like ArrayBuffer, we violate the spec and add an operator[].
645645 args.This ()->SetIndexedPropertiesToExternalArrayData (
646- reinterpret_cast <char *>(buf) + byte_offset,
646+ static_cast <char *>(buf) + byte_offset,
647647 v8::kExternalUnsignedByteArray , byte_length);
648648
649649 args.This ()->Set (v8::String::New (" buffer" ),
@@ -670,7 +670,7 @@ class DataView {
670670 template <typename T>
671671 static T getValue (void * ptr, unsigned int index, bool swiz) {
672672 char buf[sizeof (T)];
673- memcpy (buf, reinterpret_cast <char *>(ptr) + index, sizeof (T));
673+ memcpy (buf, static_cast <char *>(ptr) + index, sizeof (T));
674674 if (swiz)
675675 swizzle (buf, sizeof (T));
676676 T val;
@@ -684,7 +684,7 @@ class DataView {
684684 memcpy (buf, &val, sizeof (T));
685685 if (swiz)
686686 swizzle (buf, sizeof (T));
687- memcpy (reinterpret_cast <char *>(ptr) + index, buf, sizeof (T));
687+ memcpy (static_cast <char *>(ptr) + index, buf, sizeof (T));
688688 }
689689
690690 template <typename T>
0 commit comments