Add uint8_t specialization for WebCore::writeLittleEndian()
authordbates@webkit.org <dbates@webkit.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Mon, 13 Jan 2014 20:56:04 +0000 (20:56 +0000)
committerdbates@webkit.org <dbates@webkit.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Mon, 13 Jan 2014 20:56:04 +0000 (20:56 +0000)
commit26dee81bc7928f2d907d452b0f3c9cedd17e8448
tree229be5e1ba769e6ef49887a957a43113784acd77
parentb763ed0b876dc1595dde0da5c09ff666ef5692ad
Add uint8_t specialization for WebCore::writeLittleEndian()
https://bugs.webkit.org/show_bug.cgi?id=126924

Reviewed by Darin Adler.

Specialize WebCore::writeLittleEndian() for datatype uint8_t so as to avoid
a compiler warning when right shifting a uint8_t by 8 because the result of
such a computation is undefined.

* bindings/js/SerializedScriptValue.cpp:
(WebCore::writeLittleEndian<uint8_t>): Added.

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@161903 268f45cc-cd09-0410-ab3c-d52691b4dbfc
Source/WebCore/ChangeLog
Source/WebCore/bindings/js/SerializedScriptValue.cpp