mirror of
https://github.com/golang/go.git
synced 2025-12-08 06:10:04 +00:00
assorted cleanup and fixes
R=r DELTA=209 (109 added, 79 deleted, 21 changed) OCL=20930 CL=20934
This commit is contained in:
parent
a238087aa2
commit
d0e30cdaa9
8 changed files with 128 additions and 98 deletions
|
|
@ -275,7 +275,7 @@ func getFloat64(v reflect.Value) (val float64, ok bool) {
|
|||
func getPtr(v reflect.Value) (val uintptr, ok bool) {
|
||||
switch v.Kind() {
|
||||
case reflect.PtrKind:
|
||||
return uintptr(v.(reflect.PtrValue)), true;
|
||||
return uintptr(v.(reflect.PtrValue).Get()), true;
|
||||
}
|
||||
return 0, false;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue