avrdude-dev
[Top][All Lists]
Advanced

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

Re: [avrdude-dev] Fix warnings patch


From: Joerg Wunsch
Subject: Re: [avrdude-dev] Fix warnings patch
Date: Thu, 28 Aug 2003 23:26:16 +0200
User-agent: Mutt/1.2.5i

As E. Weddington wrote:

> Hold on.... Am I getting bit by machine sizes again? I'm assuming
> that int = 2 bytes. Is int = 4 bytes on Linux (etc.)?

It's usually 4 bytes on any 32-bit machine, and often even on 64-bit
machines.  So even in Win32, sizeof(int) == 32. ;-)

Effectively, sizeof(int) == sizeof(long) == 32 for virtually any
`host' computer these days (i. e. for non-embedded systems).  At the
transition to 64-bit machines, somehow people didn't have the heart to
default `int' to a 64-bit type, so they invented long long for the
64-bit types.

-- 
J"org Wunsch                                           Unix support engineer
address@hidden        http://www.interface-systems.de/~j/




reply via email to

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