Login
User Name:

Password:



Register
Forgot your password?
Vote for Us!
tintin++ ogg sound player script for linux
Author: Robert Smith
Submitted by: Vladaar
6Dragons ogg Soundpack
Author: Vladaar
Submitted by: Vladaar
6Dragons 4.4
Author: Vladaar
Submitted by: Vladaar
LoP 1.46
Author: Remcon
Submitted by: Remcon
LOP 1.45
Author: Remcon
Submitted by: Remcon
Users Online
CommonCrawl, DotBot, Google

Members: 0
Guests: 12
Stats
Files
Topics
Posts
Members
Newest Member
481
3,739
19,386
625
OmarHarrim
Today's Birthdays
There are no member birthdays today.
Related Links
» SmaugMuds.org » Bugfix Lists » AFKMud Bugfix List » [Bug] Argument type mismatch ...
Forum Rules | Mark all | Recent Posts

[Bug] Argument type mismatch for descriptor_data::pager
< Newer Topic :: Older Topic > AFKMud 2.0

Pages:<< prev 1 next >>
Post is unread #1 Jan 3, 2007, 7:06 pm
Go to the top of the page
Go to the bottom of the page

Samson
Black Hand
GroupAdministrators
Posts3,643
JoinedJan 1, 2002

Bug: Argument type mismatch for descriptor_data::pager
Danger: Medium - Compile fails as a result on AMD64 systems.
Discovered in: AFKMud 2.0
Found by: N_Yo_FACE
Fixed by: Samson

---

descriptor.cpp, descriptor_data::pager

Locate:
void descriptor_data::pager( const char *txt, unsigned int length )


Change to:
void descriptor_data::pager( const char *txt, size_t length )



The function is declared in descriptor.h to use a size_t and should have been set the same way in the .cpp file. The reason it fails compile on a 64bit CPU is because size_t gets used as a generic type which on 64bit systems is not an unsigned int.
       
Pages:<< prev 1 next >>