Re: sizeof(glong)



Dnia 14-01-2005, pią o godzinie 19:38 +0300, Jan napisał:
Hi!

Interesting to me is 
sizeof(glong)==4
or
sizeof(glong)==8
on computer with 64bit processors, like amd64?

That depends on which 64-bit arch we're talking about. Some have
sizeof(glong) == 4, and some sizeof(glong) == 8. Generally, you should
never ever assume anything about type size except the basic sizeof(char)
<= sizeof(short) ... If you rely on size, use portable typedefs provided
by glib, ie gint32/64.

Cheers,
Maciej

-- 
Maciej Katafiasz <ml mathrick org>




[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]