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

Development::Bug Reports Post detailed bug reports and what you would like to see next in the emu here.

Reply
 
Thread Tools Display Modes
  #1  
Old 02-04-2013, 12:56 AM
c0ncrete's Avatar
c0ncrete
Dragon
 
Join Date: Dec 2009
Posts: 719
Default perl_mob.cpp return type fixes

corrected a few signed/unsigned mismatches

Code:
Index: perl_mob.cpp
===================================================================
--- perl_mob.cpp	(revision 2481)
+++ perl_mob.cpp	(working copy)
@@ -664,7 +664,7 @@
 		Perl_croak(aTHX_ "Usage: Mob::GetEquipment(THIS, material_slot)");
 	{
 		Mob *		THIS;
-		int32		RETVAL;
+		uint32		RETVAL;
 		dXSTARG;
 		uint8		material_slot = (uint8)SvUV(ST(1));
 
@@ -678,7 +678,7 @@
 			Perl_croak(aTHX_ "THIS is NULL, avoiding crash.");
 
 		RETVAL = THIS->GetEquipment(material_slot);
-		XSprePUSH; PUSHi((IV)RETVAL);
+		XSprePUSH; PUSHi((UV)RETVAL);
 	}
 	XSRETURN(1);
 }
@@ -718,7 +718,7 @@
 		Perl_croak(aTHX_ "Usage: Mob::GetEquipmentColor(THIS, material_slot)");
 	{
 		Mob *		THIS;
-		int32		RETVAL;
+		uint32		RETVAL;
 		dXSTARG;
 		uint8		material_slot = (uint8)SvUV(ST(1));
 
@@ -732,7 +732,7 @@
 			Perl_croak(aTHX_ "THIS is NULL, avoiding crash.");
 
 		RETVAL = THIS->GetEquipmentColor(material_slot);
-		XSprePUSH; PUSHi((IV)RETVAL);
+		XSprePUSH; PUSHi((UV)RETVAL);
 	}
 	XSRETURN(1);
 }
@@ -745,7 +745,7 @@
 		Perl_croak(aTHX_ "Usage: Mob::GetArmorTint(THIS, material_slot)");
 	{
 		Mob *		THIS;
-		int32		RETVAL;
+		uint32		RETVAL;
 		dXSTARG;
 		uint8		material_slot = (uint8)SvUV(ST(1));
 
@@ -759,7 +759,7 @@
 			Perl_croak(aTHX_ "THIS is NULL, avoiding crash.");
 
 		RETVAL = THIS->GetArmorTint(material_slot);
-		XSprePUSH; PUSHi((IV)RETVAL);
+		XSprePUSH; PUSHi((UV)RETVAL);
 	}
 	XSRETURN(1);
 }
__________________
I muck about @ The Forge.
say(rand 99>49?'try '.('0x'.join '',map{unpack 'H*',chr rand 256}1..2):'incoherent nonsense')while our $Noport=1;
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 07:46 AM.


 

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