Go Back   EQEmulator Home > EQEmulator Forums > Development > Development::Development

Development::Development Forum for development topics and for those interested in EQEMu development. (Not a support forum)

Reply
 
Thread Tools Display Modes
  #1  
Old 01-20-2013, 07:07 PM
KLS
Administrator
 
Join Date: Sep 2006
Posts: 1,348
Default intN types

Will be changing intN types a bit today to better reflect their c99 and c++11 counterparts.

Essentially:
intN used to be unsigned so they have all been converted to uintN instead and intN is now a signed type.
sintN was signed and have all been converted to the new intN type and sintN types have been removed.
uintN types have not been touched outside of old intN types are now uintN types.

Keep this in mind when developing code in the future.
Reply With Quote
  #2  
Old 01-20-2013, 07:54 PM
lerxst2112
Demi-God
 
Join Date: Aug 2010
Posts: 1,742
Default

Yay! Having int32 be unsigned was quite unintuitive.
Reply With Quote
  #3  
Old 01-20-2013, 11:12 PM
KLS
Administrator
 
Join Date: Sep 2006
Posts: 1,348
Default

We've had a few bugs (recently even) that were caused by people thinking int32 was signed when it wasn't. It's something we've been saying "we need to do this" for a few years and I just got up and ran the source through my regex and did it.
Reply With Quote
  #4  
Old 01-20-2013, 11:22 PM
lerxst2112
Demi-God
 
Join Date: Aug 2010
Posts: 1,742
Default

There may still be a few unsigned longs out there waiting to strike as well. I saw some being used as perl return values and I'm not sure that works with 64-bit. I'd guess all the truly destructive ones have been fixed though as more people use 64-bit on Linux.
Reply With Quote
Reply


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

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

   

All times are GMT -4. The time now is 11:49 PM.


 

Everquest is a registered trademark of Daybreak Game Company LLC.
EQEmulator is not associated or affiliated in any way with Daybreak Game Company LLC.
Except where otherwise noted, this site is licensed under a Creative Commons License.
       
Powered by vBulletin®, Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Template by Bluepearl Design and vBulletin Templates - Ver3.3