Ticket #33 (new defect)

Opened 5 months ago

Last modified 5 months ago

A *very* small glitch prevents Mango to compile properly on x86_64 architectures!

Reported by: valeriupalos Assigned to: kris
Priority: major Milestone:
Component: mango.icu Version: SVN HEAD
Keywords: hash_t x86_64 amd64 64bit Cc:

Description

I'm trying to compile Mango on my 64bit Ubuntu using GDC and everything works fine except the following error:

mango/icu/UString.d:766: function mango.icu.UString.UText.toHash of type uint()
    overrides but is not covariant with object.Object.toHash of type ulong()

The problem is that on 64bit architectures the toHash method of object.Object is defined as ulong (as opposed to uint on 32bit architectures). Following what Tango does in its object.d file, I think that the uint should be changed to hash_t (which in turn is an alias of size_t, which is defined correctly for each architecture):

final override hash_t toHash ()

{

    return typeid(wchar[]).getHash (&content[0..len]);

}

After this small modification Mango compiles perfectly for x86_64.

Change History

04/01/08 07:34:04 changed by valeriupalos

  • owner set to kris.