assorted cleanup and fixes

R=r
DELTA=209  (109 added, 79 deleted, 21 changed)
OCL=20930
CL=20934
This commit is contained in:
Russ Cox 2008-12-10 15:55:59 -08:00
parent a238087aa2
commit d0e30cdaa9
8 changed files with 128 additions and 98 deletions

View file

@ -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;
}