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

Issue 29500047: code review 29500047: go.tools/go/types: Do not throw error on division of co... (Closed)

Can't Edit
Can't Publish+Mail
Start Review
Created:
11 years, 7 months ago by neelance
Modified:
11 years, 6 months ago
Reviewers:
gri1
CC:
golang-dev, mtj1, gri1, gri
Visibility:
Public.

Description

go.tools/go/types: Do not throw error on division of complex variables by zero. See http://play.golang.org/p/DrgLKnHaUW Seems like division of a variable by zero should only throw an error if the variable is an integer.

Patch Set 1 #

Patch Set 2 : diff -r 2fa151649748 https://code.google.com/p/go.tools #

Patch Set 3 : diff -r 2fa151649748 https://code.google.com/p/go.tools #

Unified diffs Side-by-side diffs Delta from patch set Stats (+2 lines, -2 lines) Patch
M go/types/expr.go View 1 1 chunk +1 line, -1 line 0 comments Download
M go/types/testdata/stmt0.src View 1 1 chunk +1 line, -1 line 0 comments Download

Messages

Total messages: 4
neelance
Hello golang-dev@googlegroups.com (cc: gri@golang.org), I'd like you to review this change to https://code.google.com/p/go.tools
11 years, 7 months ago (2013-11-20 11:51:55 UTC) #1
mtj1
The issue is between quiet and signalling NaNs On Wed, Nov 20, 2013 at 3:51 ...
11 years, 7 months ago (2013-11-20 19:39:13 UTC) #2
gri1
LGTM Yes: "If the divisor is a constant, it must not be zero." in http://tip.golang.org/ref/spec#Arithmetic_operators ...
11 years, 7 months ago (2013-11-20 21:42:05 UTC) #3
gri
11 years, 7 months ago (2013-11-20 21:42:31 UTC) #4
*** Submitted as
https://code.google.com/p/go/source/detail?r=4cc1611bed2e&repo=tools ***

go.tools/go/types: Do not throw error on division of complex variables by zero.

See http://play.golang.org/p/DrgLKnHaUW
Seems like division of a variable by zero should only throw an error if the
variable is an integer.

R=golang-dev, mtj, gri
CC=golang-dev, gri
https://codereview.appspot.com/29500047

Committer: Robert Griesemer <gri@golang.org>
Sign in to reply to this message.

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