Download Reference Manual
The Developer's Library for D
About Wiki Forums Source Search Contact

Ticket #1443 (closed defect: fixed)

Opened 15 years ago

Last modified 15 years ago

error in Utf.d on x64

Reported by: mwarning Assigned to: kris
Priority: major Milestone: 0.99.8
Component: Tango Version: 0.99.7 Dominik
Keywords: Cc:

Description

Building the unittest with ldc on x64 gives this error:

tango/io/stream/Utf.d(73): Error: function tango.text.convert.Utf.toString (wchar[],char[],uint*) does not match parameter types (dchar[],char[],ulong*)
tango/io/stream/Utf.d(73): Error: cannot implicitly convert expression (&consumed) of type ulong* to uint*
tango/io/stream/Utf.d(134): Error: template instance tango.io.stream.Utf.UtfInput!(char,dchar) error instantiating
warning - io.stream.TypedStream has been renamed io.stream.Typed
tango/io/stream/Utf.d(73): Error: function tango.text.convert.Utf.toString (wchar[],char[],uint*) does not match parameter types (dchar[],char[],ulong*)
tango/io/stream/Utf.d(73): Error: cannot implicitly convert expression (&consumed) of type ulong* to uint*
tango/io/stream/Utf.d(134): Error: template instance tango.io.stream.Utf.UtfInput!(char,dchar) error instantiating

"ate" for toString should be size_t.

Attachments

tangoUtf.diff (4.6 kB) - added by wilsonk on 01/19/09 14:44:31.
tango.patch (4.2 kB) - added by mandel on 01/19/09 22:55:47.
updated version, removed comments, one more int -> size_t

Change History

01/19/09 14:44:31 changed by wilsonk

  • attachment tangoUtf.diff added.

01/19/09 14:46:03 changed by wilsonk

The attached patch should fix this issue. Warning: not tested on x86-32, so if someone could do that and report results here, that would be great.

Thanks, K.Wilson

01/19/09 22:55:47 changed by mandel

  • attachment tango.patch added.

updated version, removed comments, one more int -> size_t

01/19/09 22:57:09 changed by mandel

patch compiles for dmd (32bit) and gdc (64bit)

01/23/09 00:33:06 changed by kris

  • status changed from new to closed.
  • resolution set to fixed.

(In [4287]) fixes #1443 :: error in Utf.d on x64

Thanks to mandel