Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(33)

Issue 247753003: fix size_t/int warnings (Closed)

Created:
6 years, 8 months ago by reed1
Modified:
6 years, 8 months ago
Reviewers:
mtklein
CC:
skia-review_googlegroups.com
Visibility:
Public.

Description

fix size_t/int warnings BUG=skia: Committed: http://code.google.com/p/skia/source/detail?r=14332

Patch Set 1 #

Total comments: 12

Patch Set 2 : change getters to return size_t #

Total comments: 1

Patch Set 3 : force clients of SkEndian to down-cast as needed #

Total comments: 2

Patch Set 4 : revert name-change in swap32 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+34 lines, -36 lines) Patch
M include/core/SkEndian.h View 1 2 3 4 chunks +6 lines, -7 lines 0 comments Download
M include/core/SkReadBuffer.h View 1 1 chunk +2 lines, -2 lines 0 comments Download
M include/core/SkReader32.h View 1 1 chunk +4 lines, -4 lines 0 comments Download
M src/core/SkReadBuffer.cpp View 1 1 chunk +2 lines, -2 lines 0 comments Download
M src/core/SkRegion.cpp View 2 chunks +2 lines, -2 lines 0 comments Download
M src/core/SkRegionPriv.h View 2 chunks +2 lines, -2 lines 0 comments Download
M src/core/SkScalerContext.cpp View 1 1 chunk +3 lines, -2 lines 0 comments Download
M src/core/SkStream.cpp View 5 chunks +7 lines, -9 lines 0 comments Download
M src/core/SkValidatingReadBuffer.cpp View 1 1 chunk +2 lines, -2 lines 0 comments Download
M src/core/SkWriter32.cpp View 1 chunk +1 line, -1 line 0 comments Download
M src/sfnt/SkOTUtils.cpp View 1 2 2 chunks +3 lines, -3 lines 0 comments Download

Messages

Total messages: 10 (0 generated)
reed1
6 years, 8 months ago (2014-04-23 05:37:21 UTC) #1
mtklein
What warning's triggering, on which build? Once we get these fixed up I'd like to ...
6 years, 8 months ago (2014-04-23 13:36:17 UTC) #2
reed1
https://codereview.chromium.org/247753003/diff/1/include/core/SkEndian.h File include/core/SkEndian.h (right): https://codereview.chromium.org/247753003/diff/1/include/core/SkEndian.h#newcode32 include/core/SkEndian.h:32: static inline uint16_t SkEndianSwap16(size_t value) { On 2014/04/23 13:36:18, ...
6 years, 8 months ago (2014-04-23 14:04:21 UTC) #3
reed1
actually, maybe you're right and we should force the call-sites to cast down to 32 ...
6 years, 8 months ago (2014-04-23 14:06:00 UTC) #4
bungeman-skia
My 2 cents. https://codereview.chromium.org/247753003/diff/20001/include/core/SkEndian.h File include/core/SkEndian.h (right): https://codereview.chromium.org/247753003/diff/20001/include/core/SkEndian.h#newcode32 include/core/SkEndian.h:32: static inline uint16_t SkEndianSwap16(size_t value) { ...
6 years, 8 months ago (2014-04-23 14:15:12 UTC) #5
reed1
ptal https://codereview.chromium.org/247753003/diff/40001/include/core/SkEndian.h File include/core/SkEndian.h (right): https://codereview.chromium.org/247753003/diff/40001/include/core/SkEndian.h#newcode54 include/core/SkEndian.h:54: static inline uint32_t SkEndianSwap32(uint32_t v) { On 2014/04/23 ...
6 years, 8 months ago (2014-04-23 14:27:36 UTC) #6
mtklein
lgtm
6 years, 8 months ago (2014-04-23 14:36:28 UTC) #7
reed1
The CQ bit was checked by reed@google.com
6 years, 8 months ago (2014-04-23 14:42:02 UTC) #8
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://skia-tree-status.appspot.com/cq/reed@google.com/247753003/60001
6 years, 8 months ago (2014-04-23 14:42:18 UTC) #9
commit-bot: I haz the power
6 years, 8 months ago (2014-04-23 19:19:58 UTC) #10
Message was sent while issue was closed.
Change committed as 14332

Powered by Google App Engine
This is Rietveld 408576698