Silence 64 to 32 bit truncation errors on WTF strings.
strlen returns size_t which can be 64 bits yet all of the WTF strings use 32 storage lengths. Add a helper function string_unsigned which returns the strlen with a SafeCast to unsigned. Place it in an implementation file to avoid increase in binary size due to inlining. BUG=588506 Change-Id: I3b5025c1fee9b1eda9cd017af6bdfc66d808e802 Reviewed-on: https://chromium-review.googlesource.com/1096133Reviewed-by:Kentaro Hara <haraken@chromium.org> Reviewed-by:
Yuta Kitamura <yutak@chromium.org> Commit-Queue: Dave Tapuska <dtapuska@chromium.org> Cr-Commit-Position: refs/heads/master@{#566415}
Showing
Please register or sign in to comment