Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(7992)

Issue 123610044: Fix for 32 bit C++ compile error. (Closed)

Can't Edit
Can't Publish+Mail
Start Review
Created:
9 years, 8 months ago by roubert (google)
Modified:
9 years, 8 months ago
Reviewers:
lararennie, Shaopeng
CC:
daniel2
Base URL:
https://libphonenumber.googlecode.com/svn/trunk
Visibility:
Public.

Description

Fix for 32 bit C++ compile error. With strict error checking, 32 bit compiles on some platforms fail with the error: "error: this decimal constant is unsigned only in ISO C90" This patch fixes the error by adding the "u" unsigned qualifier to the integers. Author: daniel@pocock.pro R=jia.shao.peng@gmail.com, lararennie@google.com BUG= Committed: https://code.google.com/p/libphonenumber/source/detail?r=686

Patch Set 1 #

Total comments: 2

Patch Set 2 : Declare all phone number literals as UL. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+13 lines, -13 lines) Patch
M cpp/test/phonenumbers/geocoding/phonenumber_offline_geocoder_test.cc View 1 1 chunk +13 lines, -13 lines 0 comments Download

Messages

Total messages: 8
roubert (google)
9 years, 8 months ago (2014-08-19 20:47:08 UTC) #1
Shaopeng
https://codereview.appspot.com/123610044/diff/1/cpp/test/phonenumbers/geocoding/phonenumber_offline_geocoder_test.cc File cpp/test/phonenumbers/geocoding/phonenumber_offline_geocoder_test.cc (right): https://codereview.appspot.com/123610044/diff/1/cpp/test/phonenumbers/geocoding/phonenumber_offline_geocoder_test.cc#newcode61 cpp/test/phonenumbers/geocoding/phonenumber_offline_geocoder_test.cc:61: BS_NUMBER1(MakeNumber(1, 2423651234UL)), why don't we need U for other ...
9 years, 8 months ago (2014-08-20 08:08:35 UTC) #2
daniel2
On 20/08/14 10:08, jia.shao.peng@gmail.com wrote: > > https://codereview.appspot.com/123610044/diff/1/cpp/test/phonenumbers/geocoding/phonenumber_offline_geocoder_test.cc > > File > cpp/test/phonenumbers/geocoding/phonenumber_offline_geocoder_test.cc > (right): ...
9 years, 8 months ago (2014-08-20 08:16:14 UTC) #3
Shaopeng
Ok. I am sure I won't be the last person asking this question when looking ...
9 years, 8 months ago (2014-08-20 08:33:25 UTC) #4
daniel2
On 20/08/14 10:33, Shaopeng wrote: > Ok. I am sure I won't be the last ...
9 years, 8 months ago (2014-08-20 08:40:25 UTC) #5
roubert (google)
https://codereview.appspot.com/123610044/diff/1/cpp/test/phonenumbers/geocoding/phonenumber_offline_geocoder_test.cc File cpp/test/phonenumbers/geocoding/phonenumber_offline_geocoder_test.cc (right): https://codereview.appspot.com/123610044/diff/1/cpp/test/phonenumbers/geocoding/phonenumber_offline_geocoder_test.cc#newcode61 cpp/test/phonenumbers/geocoding/phonenumber_offline_geocoder_test.cc:61: BS_NUMBER1(MakeNumber(1, 2423651234UL)), I've now updated all phone number integer ...
9 years, 8 months ago (2014-08-21 15:52:12 UTC) #6
Shaopeng
On 2014/08/21 15:52:12, roubert (google) wrote: > https://codereview.appspot.com/123610044/diff/1/cpp/test/phonenumbers/geocoding/phonenumber_offline_geocoder_test.cc > File cpp/test/phonenumbers/geocoding/phonenumber_offline_geocoder_test.cc > (right): > > ...
9 years, 8 months ago (2014-08-22 14:32:14 UTC) #7
roubert (google)
9 years, 8 months ago (2014-08-22 14:33:15 UTC) #8
Message was sent while issue was closed.
Committed patchset #2 manually as 686 (presubmit successful).
Sign in to reply to this message.

Powered by Google App Engine
RSS Feeds Recent Issues | This issue
This is Rietveld f62528b