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

Issue 6409045: skdiff: cap return value at 255 to avoid automatic 'wrapping' (%256) of return value (Closed)

Can't Edit
Can't Publish+Mail
Start Review
Created:
12 years, 4 months ago by epoger
Modified:
12 years, 4 months ago
Reviewers:
rmistry
CC:
skia-review_googlegroups.com
Base URL:
http://skia.googlecode.com/svn/trunk/
Visibility:
Public.

Description

skdiff: cap return value at 255 to avoid automatic 'wrapping' (%256) of return value Committed: https://code.google.com/p/skia/source/detail?r=4629

Patch Set 1 #

Total comments: 2

Patch Set 2 : #

Unified diffs Side-by-side diffs Delta from patch set Stats (+5 lines, -1 line) Patch
M tools/skdiff_main.cpp View 1 1 chunk +5 lines, -1 line 0 comments Download

Messages

Total messages: 3
epoger
12 years, 4 months ago (2012-07-16 17:19:58 UTC) #1
rmistry
LGTM https://codereview.appspot.com/6409045/diff/1/tools/skdiff_main.cpp File tools/skdiff_main.cpp (right): https://codereview.appspot.com/6409045/diff/1/tools/skdiff_main.cpp#newcode1317 tools/skdiff_main.cpp:1317: return num_failing_results; [optional] return (num_failing_results > 255) ? ...
12 years, 4 months ago (2012-07-16 17:56:45 UTC) #2
epoger
12 years, 4 months ago (2012-07-16 18:01:00 UTC) #3
https://codereview.appspot.com/6409045/diff/1/tools/skdiff_main.cpp
File tools/skdiff_main.cpp (right):

https://codereview.appspot.com/6409045/diff/1/tools/skdiff_main.cpp#newcode1317
tools/skdiff_main.cpp:1317: return num_failing_results;
On 2012/07/16 17:56:46, rmistry wrote:
> [optional]
> return (num_failing_results > 255) ? 255 : num_failing_results;

That is better, thanks!
Sign in to reply to this message.

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