Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(4)

Issue 8360027: Proper string comparison. (Closed)

Created:
9 years, 2 months ago by Anton Muhin
Modified:
9 years, 2 months ago
Reviewers:
cshapiro, Ivan Posva
CC:
reviews_dartlang.org, vm-dev_dartlang.org
Visibility:
Public.

Description

Proper string comparison. Committed: https://code.google.com/p/dart/source/detail?r=646

Patch Set 1 #

Patch Set 2 : Test added. #

Total comments: 2

Patch Set 3 : Addressing comments #

Unified diffs Side-by-side diffs Delta from patch set Stats (+2 lines, -1 line) Patch
M runtime/vm/object.cc View 1 2 1 chunk +1 line, -1 line 0 comments Download
M runtime/vm/object_test.cc View 1 1 chunk +1 line, -0 lines 0 comments Download

Messages

Total messages: 6 (0 generated)
Anton Muhin
9 years, 2 months ago (2011-10-21 12:32:56 UTC) #1
Ivan Posva
Great catch! Can you please add a test case? Thanks, -Ivan
9 years, 2 months ago (2011-10-21 17:00:53 UTC) #2
Anton Muhin
Test added.
9 years, 2 months ago (2011-10-21 19:23:08 UTC) #3
cshapiro
http://codereview.chromium.org/8360027/diff/4001/runtime/vm/object.cc File runtime/vm/object.cc (right): http://codereview.chromium.org/8360027/diff/4001/runtime/vm/object.cc#newcode5347 runtime/vm/object.cc:5347: return str[0] == '\0'; How about "*str == '\0'" ...
9 years, 2 months ago (2011-10-21 20:12:47 UTC) #4
Anton Muhin
http://codereview.chromium.org/8360027/diff/4001/runtime/vm/object.cc File runtime/vm/object.cc (right): http://codereview.chromium.org/8360027/diff/4001/runtime/vm/object.cc#newcode5347 runtime/vm/object.cc:5347: return str[0] == '\0'; On 2011/10/21 20:12:47, cshapiro wrote: ...
9 years, 2 months ago (2011-10-24 15:59:34 UTC) #5
cshapiro
9 years, 2 months ago (2011-10-24 19:20:06 UTC) #6
lgtm

Powered by Google App Engine
This is Rietveld 408576698