-
Notifications
You must be signed in to change notification settings - Fork 18.5k
cmd/cgo: perform explicit conversion in _GoStringLen #27092
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
|
Message from Gerrit User 5976: Patch Set 1: Congratulations on opening your first change. Thank you for your contribution! Next steps: Most changes in the Go project go through a few rounds of revision. This can be During May-July and Nov-Jan the Go project is in a code freeze, during which Please don’t reply on this GitHub thread. Visit golang.org/cl/129820. |
|
Message from Gerrit User 5065: Patch Set 1: Run-TryBot+1 Please don’t reply on this GitHub thread. Visit golang.org/cl/129820. |
|
Message from Gerrit User 5976: Patch Set 1: TryBots beginning. Status page: https://farmer.golang.org/try?commit=8741dd47 Please don’t reply on this GitHub thread. Visit golang.org/cl/129820. |
|
Message from Gerrit User 5976: Patch Set 1: TryBot-Result+1 TryBots are happy. Please don’t reply on this GitHub thread. Visit golang.org/cl/129820. |
|
Message from Gerrit User 5206: Patch Set 1: (1 comment) Please don’t reply on this GitHub thread. Visit golang.org/cl/129820. |
|
Message from Gerrit User 5206: Patch Set 1: (1 comment) Please don’t reply on this GitHub thread. Visit golang.org/cl/129820. |
|
Message from Gerrit User 12446: Uploaded patch set 2: Commit message was updated. Please don’t reply on this GitHub thread. Visit golang.org/cl/129820. |
|
Message from Gerrit User 12446: Uploaded patch set 3: Commit message was updated. Please don’t reply on this GitHub thread. Visit golang.org/cl/129820. |
|
Message from Gerrit User 12446: Uploaded patch set 4: New patch set was added with same tree, parent, and commit message as Patch Set 3. Please don’t reply on this GitHub thread. Visit golang.org/cl/129820. |
_GoStringLen performs an implicit conversion from intgo to size_t. Explicitly cast to size_t.
|
Message from Gerrit User 12446: Uploaded patch set 6: New patch set was added with same tree, parent, and commit message as Patch Set 5. Please don’t reply on this GitHub thread. Visit golang.org/cl/129820. |
|
Message from Gerrit User 5206: Patch Set 6: Run-TryBot+1 Please don’t reply on this GitHub thread. Visit golang.org/cl/129820. |
|
Message from Gerrit User 5976: Patch Set 6: TryBots beginning. Status page: https://farmer.golang.org/try?commit=99f1c348 Please don’t reply on this GitHub thread. Visit golang.org/cl/129820. |
|
Message from Gerrit User 5976: Patch Set 6: TryBot-Result+1 TryBots are happy. Please don’t reply on this GitHub thread. Visit golang.org/cl/129820. |
|
Message from Gerrit User 5206: Patch Set 6: Code-Review+2 Thanks. Please don’t reply on this GitHub thread. Visit golang.org/cl/129820. |
_GoStringLen performs an implicit conversion from intgo to size_t. Explicitly cast to size_t. This change avoids warnings when using cgo with CFLAGS: -Wconversion. Change-Id: I58f75a35e17f669a67f9805061c041b03eddbb5c GitHub-Last-Rev: b5df1ac GitHub-Pull-Request: #27092 Reviewed-on: https://go-review.googlesource.com/129820 Run-TryBot: Ian Lance Taylor <iant@golang.org> TryBot-Result: Gobot Gobot <gobot@golang.org> Reviewed-by: Ian Lance Taylor <iant@golang.org>
|
This PR is being closed because golang.org/cl/129820 has been merged. |
_GoStringLen performs an implicit conversion from intgo to size_t.
Explicitly cast to size_t.
This change avoids warnings when using cgo with CFLAGS:
-Wconversion.