[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: gdb, libio, readline
From: |
Roland McGrath |
Subject: |
Re: gdb, libio, readline |
Date: |
Sun, 31 Mar 2002 16:22:20 -0500 (EST) |
> What is this "sizeof (MACH_MSG_TYPE_INTEGER_T)"? MACH_MSG_TYPE_INTEGER_T is
> just a macro defining a number:
> #define MACH_MSG_TYPE_INTEGER_T MACH_MSG_TYPE_INTEGER_32
>
> It doesn't seem to make sense to use the sizeof operator on this value.
Oops. That is certainly a bug, but it turns out to be a harmless one. In
fact, sizeof (12345) == 4; that's because the constant has type int, and
sizeof an expression is valid to mean the size of that expression's type.
- gdb, libio, readline, Marcus Brinkmann, 2002/03/29
- Re: gdb, libio, readline, Roland McGrath, 2002/03/30
- Re: gdb, libio, readline, Marcus Brinkmann, 2002/03/30
- Re: gdb, libio, readline, Marcus Brinkmann, 2002/03/30
- Re: gdb, libio, readline, Marcus Brinkmann, 2002/03/30
- Re: gdb, libio, readline, Marcus Brinkmann, 2002/03/30
- Re: gdb, libio, readline,
Roland McGrath <=
- bug located (was: Re: gdb, libio, readline, Marcus Brinkmann, 2002/03/30
- Re: bug located (was: Re: gdb, libio, readline, Marcus Brinkmann, 2002/03/30
- Re: bug located (was: Re: gdb, libio, readline, Niels Möller, 2002/03/31
- Re: bug located (was: Re: gdb, libio, readline, Marcus Brinkmann, 2002/03/31
- Re: bug located (was: Re: gdb, libio, readline, Roland McGrath, 2002/03/31