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

Issue 180059: code review 180059: Use BitSize instead of the field's type native ByteSize... (Closed)

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

Description

Use BitSize instead of the field's type native ByteSize when calculating structs containing bitfields. Fixes issue 163.

Patch Set 1 #

Patch Set 2 : code review 180059: Use BitSize instead of the field's type native ByteSize... #

Patch Set 3 : code review 180059: Use BitSize instead of the field's type native ByteSize... #

Patch Set 4 : code review 180059: Use BitSize instead of the field's type native ByteSize... #

Total comments: 1

Patch Set 5 : code review 180059: Use BitSize instead of the field's type native ByteSize... #

Unified diffs Side-by-side diffs Delta from patch set Stats (+3 lines, -0 lines) Patch
M src/cmd/cgo/gcc.go View 1 2 3 4 1 chunk +3 lines, -0 lines 0 comments Download

Messages

Total messages: 10
dho
Hello rsc (cc: golang-dev@googlegroups.com), I'd like you to review the following change.
15 years, 3 months ago (2009-12-16 03:03:29 UTC) #1
rsc
Have you tested this? It looks to me like you are adding a number of ...
15 years, 3 months ago (2009-12-16 03:15:06 UTC) #2
dho
2009/12/15 Russ Cox <rsc@golang.org>: > Have you tested this? It looks to me like you ...
15 years, 3 months ago (2009-12-16 03:21:51 UTC) #3
dho
PTAL. Now only adds the first member of the bitfield with the full range, and ...
15 years, 3 months ago (2009-12-16 15:22:56 UTC) #4
dho
It occurs to me that it's worth pointing out the error: /home/dho/bin/6g -o _go_.6 file.cgo1.go ...
15 years, 3 months ago (2009-12-16 16:22:19 UTC) #5
dho
(re-PTAL)
15 years, 3 months ago (2009-12-16 16:57:06 UTC) #6
rsc
http://codereview.appspot.com/180059/diff/9/10 File src/cmd/cgo/gcc.go (right): http://codereview.appspot.com/180059/diff/9/10#newcode698 src/cmd/cgo/gcc.go:698: if bitsRemaining > 0 { I don't think it ...
15 years, 3 months ago (2009-12-16 17:25:21 UTC) #7
dho
> http://codereview.appspot.com/180059/diff/9/10#newcode698 > src/cmd/cgo/gcc.go:698: if bitsRemaining > 0 { > I don't think it makes ...
15 years, 3 months ago (2009-12-16 18:30:42 UTC) #8
rsc
LGTM
15 years, 2 months ago (2009-12-17 20:33:57 UTC) #9
rsc
15 years, 2 months ago (2009-12-17 20:38:32 UTC) #10
*** Submitted as http://code.google.com/p/go/source/detail?r=343e88ddcc0d ***

Use BitSize instead of the field's type native ByteSize when calculating
structs containing bitfields.

Fixes issue 163.

R=rsc
CC=golang-dev
http://codereview.appspot.com/180059

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