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

Issue 4172049: code review 4172049: gc: make string const comparison unsigned (Closed)

Can't Edit
Can't Publish+Mail
Start Review
Created:
14 years, 3 months ago by jeff.allen
Modified:
14 years, 2 months ago
Reviewers:
CC:
rsc, golang-dev, rog
Visibility:
Public.

Description

gc: make string const comparison unsigned Make compile-time string const comparison match semantics of runtime.cmpstring. Fixes issue 1515.

Patch Set 1 #

Patch Set 2 : code review 4172049: gc: make string const comparison unsigned #

Total comments: 2

Patch Set 3 : diff -r 5a8a83c00638 https://go.googlecode.com/hg/ #

Patch Set 4 : diff -r 5a8a83c00638 https://go.googlecode.com/hg/ #

Total comments: 1

Patch Set 5 : diff -r 4892f94182a5 https://go.googlecode.com/hg/ #

Total comments: 1
Unified diffs Side-by-side diffs Delta from patch set Stats (+22 lines, -3 lines) Patch
M src/cmd/gc/const.c View 1 2 3 4 1 chunk +3 lines, -3 lines 0 comments Download
A test/fixedbugs/bug1515.go View 3 1 chunk +19 lines, -0 lines 1 comment Download

Messages

Total messages: 11
jeff.allen
Hello rsc (cc: golang-dev@googlegroups.com, rog), I'd like you to review this change.
14 years, 3 months ago (2011-02-15 12:20:37 UTC) #1
rsc1
http://codereview.appspot.com/4172049/diff/2001/src/cmd/gc/const.c File src/cmd/gc/const.c (right): http://codereview.appspot.com/4172049/diff/2001/src/cmd/gc/const.c#newcode1058 src/cmd/gc/const.c:1058: s1 = l->val.u.sval->s; Doesn't this now need a cast? ...
14 years, 3 months ago (2011-02-15 13:48:56 UTC) #2
jeff.allen
http://codereview.appspot.com/4172049/diff/2001/src/cmd/gc/const.c File src/cmd/gc/const.c (right): http://codereview.appspot.com/4172049/diff/2001/src/cmd/gc/const.c#newcode1058 src/cmd/gc/const.c:1058: s1 = l->val.u.sval->s; The stype of sval->s is char ...
14 years, 3 months ago (2011-02-15 16:28:29 UTC) #3
rsc
Please just add the cast in the one place.
14 years, 3 months ago (2011-02-15 16:35:06 UTC) #4
jeff.allen
*** Abandoned ***
14 years, 3 months ago (2011-02-16 11:24:57 UTC) #5
jeff.allen
Hello rsc (cc: golang-dev@googlegroups.com, rog), I'd like you to review this change to https://go.googlecode.com/hg/
14 years, 3 months ago (2011-02-16 12:01:15 UTC) #6
rsc
On Wed, Feb 16, 2011 at 06:24, <jeff.allen@gmail.com> wrote: > *** Abandoned *** If you ...
14 years, 3 months ago (2011-02-16 16:29:24 UTC) #7
rsc
almost there... always a good idea to look at the surrounding code to see how ...
14 years, 3 months ago (2011-02-16 18:20:15 UTC) #8
jeff.allen
Hello rsc (cc: golang-dev@googlegroups.com, rog), I'd like you to review this change to https://go.googlecode.com/hg/
14 years, 3 months ago (2011-02-16 21:32:15 UTC) #9
rsc1
LGTM http://codereview.appspot.com/4172049/diff/3004/test/fixedbugs/bug1515.go File test/fixedbugs/bug1515.go (right): http://codereview.appspot.com/4172049/diff/3004/test/fixedbugs/bug1515.go#newcode16 test/fixedbugs/bug1515.go:16: if ((s1<s2) != (joao<jose)) { i will drop ...
14 years, 3 months ago (2011-02-16 22:46:10 UTC) #10
rsc
14 years, 3 months ago (2011-02-16 22:57:24 UTC) #11
*** Submitted as http://code.google.com/p/go/source/detail?r=c12d974b0f6c ***

gc: make string const comparison unsigned

Make compile-time string const comparison match semantics
of runtime.cmpstring.

Fixes issue 1515.

R=rsc
CC=golang-dev, rog
http://codereview.appspot.com/4172049

Committer: Russ Cox <rsc@golang.org>
Sign in to reply to this message.

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