lang: types: We should use the platform-dependent int instead
This could be a 32 or 64 bit sized int depending on arch.
This commit is contained in:
@@ -333,7 +333,7 @@ func Into(v Value, rv reflect.Value) error {
|
||||
|
||||
switch kind {
|
||||
case reflect.Slice:
|
||||
pow := nextPowerOfTwo(uint32(count))
|
||||
pow := nextPowerOfTwo(uint(count))
|
||||
nval := reflect.MakeSlice(rv.Type(), count, int(pow))
|
||||
rv.Set(nval)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user