fixed typo: toplevel_format_lens() now uses ptr data when talking about pointers
authorDima Kogan <dima@secretsauce.net>
Sun, 13 Apr 2014 04:59:26 +0000 (21:59 -0700)
committerChanho Park <chanho61.park@samsung.com>
Fri, 22 Aug 2014 11:38:25 +0000 (20:38 +0900)
lens_default.c

index 958114f..fb66b9d 100644 (file)
@@ -429,7 +429,7 @@ toplevel_format_lens(struct lens *lens, FILE *stream,
        case ARGTYPE_POINTER:
                if (value_is_zero(value, arguments))
                        return fprintf(stream, null_message);
-               if (value->type->u.array_info.elt_type->type != ARGTYPE_VOID)
+               if (value->type->u.ptr_info.info->type != ARGTYPE_VOID)
                        return format_pointer(stream, value, arguments);
                return format_integer(stream, value, INT_FMT_x, arguments);