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

Issue 1144041: Make sure that floats are written with at least one decimal point. (Closed)

Can't Edit
Can't Publish+Mail
Start Review
Created:
14 years ago by Alok Priyadarshi
Modified:
14 years ago
Reviewers:
kbr1, dgkoch
CC:
angleproject-review_googlegroups.com
Base URL:
http://angleproject.googlecode.com/svn/trunk/
Visibility:
Public.

Description

Make sure that floats are written with at least one decimal point.

Patch Set 1 #

Total comments: 2

Patch Set 2 : '' #

Patch Set 3 : '' #

Total comments: 1
Unified diffs Side-by-side diffs Delta from patch set Stats (+15 lines, -4 lines) Patch
M src/compiler/InfoSink.h View 1 2 2 chunks +15 lines, -4 lines 1 comment Download

Messages

Total messages: 5
Alok Priyadarshi
14 years ago (2010-05-06 18:22:24 UTC) #1
dgkoch
Looks good.
14 years ago (2010-05-06 18:30:04 UTC) #2
kbr1
http://codereview.appspot.com/1144041/diff/1/2 File src/compiler/InfoSink.h (right): http://codereview.appspot.com/1144041/diff/1/2#newcode17 src/compiler/InfoSink.h:17: modf(f, &integral); modf returns the fractional part so the ...
14 years ago (2010-05-06 18:44:03 UTC) #3
Alok Priyadarshi
http://codereview.appspot.com/1144041/diff/1/2 File src/compiler/InfoSink.h (right): http://codereview.appspot.com/1144041/diff/1/2#newcode17 src/compiler/InfoSink.h:17: modf(f, &integral); replaced with fmodf
14 years ago (2010-05-06 19:08:10 UTC) #4
kbr1
14 years ago (2010-05-06 20:55:16 UTC) #5
LGTM

http://codereview.appspot.com/1144041/diff/7001/8001
File src/compiler/InfoSink.h (right):

http://codereview.appspot.com/1144041/diff/7001/8001#newcode16
src/compiler/InfoSink.h:16: return fmodf(f, 1.0f);
Oops, sorry, I was wrong. This is OK, or you can use return modff(f, &tmp);.
modff may be more efficient.
Sign in to reply to this message.

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