Homesource Forums

Homeworld Source Editing Talk
It is currently Mon Sep 25, 2017 7:16 pm

All times are UTC - 5 hours




Post new topic Reply to topic  [ 2 posts ] 
Author Message
PostPosted: Thu Dec 07, 2006 4:43 pm 
Offline
coder
User avatar

Joined: Tue Dec 14, 2004 3:24 pm
Posts: 324
Location: UK (UTC+0)
Knowingly casting a negative number to an unsigned type is not sane I tell you!
Code:
    memClearDword(etgBigDeathFactor, (udword)-10, NUM_RACES * NUM_CLASSES);
    memClearDword(etgBigDeathFactorDerelict, (udword)-10, NUM_DERELICTTYPES);

_________________
MacHomeworld | HomeworldSDL.org


Top
 Profile  
 
PostPosted: Mon Apr 23, 2007 6:48 pm 
Offline

Joined: Mon Oct 02, 2006 9:05 pm
Posts: 9
While it is a bad practice, I think I their trying to do is get another number with same hexcode 0x 80 00 00 09 (Dword) would be a signed number of -10 while un unsigned number of 2,147,483,657


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 2 posts ] 

All times are UTC - 5 hours


Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
cron
Powered by phpBB® Forum Software © phpBB Group