C Programming
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsProgramming LanguagesC Programming

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
  #1  
Old June 13th, 2003, 01:59 AM
vliopard's Avatar
vliopard vliopard is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: May 2003
Location: Brazil
Posts: 3 vliopard User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Send a message via ICQ to vliopard Send a message via AIM to vliopard Send a message via Yahoo to vliopard
Question __int64 (long long) & assert.h

I'm developing a software for both Windows and Linux.

But I have some problems using the function "assert()" in Linux, because __int64 is not the same thing as "long long".

Example:

/* Code for Windows (It works very well) */
unsigned __int64 n_key = b_key;
n_key ^= functionResult();
b_key = functionReturn();
assert(b_key == n_key);

/* Code for Linux (It does not work) */
unsigned long long n_key = b_key;
n_key ^= functionResult();
b_key = functionReturn();
assert(b_key == n_key); // ERROR

How can I learn more about "__int64" to understand how it works?

I need a different way, not "long long", to use 64bit integers on GCC that "assert()" accept fine parameters...

Thank you!

Reply With Quote
Reply

Viewing: Dev Shed ForumsProgramming LanguagesC Programming > __int64 (long long) & assert.h


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 4 hosted by Hostway