www.delorie.com/archives/browse.cgi | search |
From: | jmarco AT cnct DOT com (John Panettiere) |
Newsgroups: | comp.os.msdos.djgpp |
Subject: | Re: [??] declaring 64bit integer |
Date: | Wed, 18 Dec 1996 05:23:07 GMT |
Organization: | The Internet Conection |
Lines: | 26 |
Message-ID: | <5982h7$e8i@news2.cnct.com> |
References: | <5951n6$hts AT news DOT service DOT uci DOT edu> |
NNTP-Posting-Host: | nj-dialup225.cnct.com |
To: | djgpp AT delorie DOT com |
DJ-Gateway: | from newsgroup comp.os.msdos.djgpp |
You probably need to cast the constant you are returning - it may be truncated otherwise. return ((long long) 0x222244445555); John Panettiere beppu AT rigel DOT oac DOT uci DOT edu (John Beppu) wrote: > How should I declare a 64bit integer w/ djgpp? Is it even possible? > I tried "long long" and when I looked at the assembler output, it > looked like it was using eax & edx, but gcc gave me a warning. >long long blah(void) { > return(0x222244445555); >} > Any help is appreciated. Thanks. >-- > beppu AT uci DOT edu .............................................................
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |