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

Issue 4548051: Warn when an SkScalar is passed into SkIntToScalar() (converted twice) (Closed)

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

Description

Mike suggested this, and it's clever, but it didn't catch any cases where we pass SkScalar to SkIntToScalar(), even though there are some! That's because, at least in the cases I found, the SkScalar was being (silently, implicitly) cast to int before being passed into SkIntToScalar(). See http://codereview.appspot.com/4556043/

Patch Set 1 #

Patch Set 2 : fix indent #

Patch Set 3 : added comments #

Unified diffs Side-by-side diffs Delta from patch set Stats (+39 lines, -3 lines) Patch
M gm/shadertext.cpp View 1 2 1 chunk +1 line, -2 lines 0 comments Download
M include/core/SkScalar.h View 1 2 2 chunks +38 lines, -1 line 0 comments Download

Messages

Total messages: 5
epoger
13 years, 3 months ago (2011-05-19 18:38:59 UTC) #1
epoger
added comments, and Mike's suggestion from http://codereview.appspot.com/4556043/
13 years, 3 months ago (2011-05-20 15:34:32 UTC) #2
epoger
Still awaiting re-review...
13 years, 3 months ago (2011-05-24 14:37:23 UTC) #3
reed1
LGTM
13 years, 3 months ago (2011-05-24 14:44:46 UTC) #4
epoger
13 years, 3 months ago (2011-05-24 14:52:41 UTC) #5
committed as r1405
Sign in to reply to this message.

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