]> Cypherpunks repositories - gostls13.git/commit
runtime: make Go and C mallocgc signatures match
authorAustin Clements <austin@google.com>
Mon, 3 Nov 2014 18:26:46 +0000 (13:26 -0500)
committerAustin Clements <austin@google.com>
Mon, 3 Nov 2014 18:26:46 +0000 (13:26 -0500)
commit489ff75ab8310b678a955b37094d2c72a1c18b11
treef1a12370a798b7cb0be0022812496154f4e226e9
parentb802240300a33024c1a47fdf2c5260a3fad0155b
runtime: make Go and C mallocgc signatures match

Previously, the flags argument to mallocgc was an int in Go,
but a uint32 in C.  Change the Go type to use uint32 so these
agree.  The largest flag value is 2 (and of course no flag
values are negative), so this won't change anything on little
endian architectures, but it matters on big endian.

LGTM=rsc
R=khr, rsc
CC=golang-codereviews
https://golang.org/cl/169920043
src/runtime/malloc.go