Cast std::chrono::duration.count() to int64_t in ArgumentCoder
authorcommit-queue@webkit.org <commit-queue@webkit.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Wed, 29 Oct 2014 04:04:19 +0000 (04:04 +0000)
committercommit-queue@webkit.org <commit-queue@webkit.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Wed, 29 Oct 2014 04:04:19 +0000 (04:04 +0000)
commita77e42ac15a2a16fb00477ee5506a8b0cc8f5806
tree1e341acf5249d8e06cf266825626742e42b81223
parenta491f646f7789abe5d6120ce5539f73df66ab19a
Cast std::chrono::duration.count() to int64_t in ArgumentCoder
https://bugs.webkit.org/show_bug.cgi?id=136981

Patch by Ting-Wei Lan <lantw44@gmail.com> on 2014-10-28
Reviewed by Alexey Proskuryakov.

Explicitly cast the return value of std::chrono::duration.count() to
a fixed-size interger type, which prevents compilation error when
the return value type matches neither int32_t nor int64_t.

* Platform/IPC/ArgumentCoders.h:

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@175299 268f45cc-cd09-0410-ab3c-d52691b4dbfc
Source/WebKit2/ChangeLog
Source/WebKit2/Platform/IPC/ArgumentCoders.h