Commit 84a27716 authored by Raul Tambre's avatar Raul Tambre Committed by Commit Bot

json_schema_compiler: Use NumberToString instead of IntToString

IntToString has been deprecated in favour of NumberToString.
Using NumberToString also fixes a few 64-bit truncation warnings.

Bug: 879657
Change-Id: Icd305fbc7ee005df63271a74412eb6dffad19712
Reviewed-on: https://chromium-review.googlesource.com/c/1448463
Auto-Submit: Raul Tambre <raul@tambre.ee>
Commit-Queue: Devlin <rdevlin.cronin@chromium.org>
Reviewed-by: default avatarDevlin <rdevlin.cronin@chromium.org>
Cr-Commit-Position: refs/heads/master@{#628413}
parent c94d97ba
...@@ -670,7 +670,7 @@ class _Generator(object): ...@@ -670,7 +670,7 @@ class _Generator(object):
' || %(var)s.GetSize() > %(total)d) {') ' || %(var)s.GetSize() > %(total)d) {')
(c.Concat(self._GenerateError( (c.Concat(self._GenerateError(
'"expected %%(total)d arguments, got " ' '"expected %%(total)d arguments, got " '
'+ base::IntToString(%%(var)s.GetSize())')) '+ base::NumberToString(%%(var)s.GetSize())'))
.Append('return nullptr;') .Append('return nullptr;')
.Eblock('}') .Eblock('}')
.Substitute({ .Substitute({
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment