bug-hurd
[Top][All Lists]
Advanced

[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.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]