Re: sha1Of() crashing and incorrect result on win64

2014-03-06 Thread Peter Alexander
On Thursday, 6 March 2014 at 17:16:39 UTC, knutaf wrote: On Thursday, 6 March 2014 at 16:58:00 UTC, Peter Alexander wrote: Known issue https://d.puremagic.com/issues/show_bug.cgi?id=9279 Thanks. Is this suggesting that if I don't use toHexString, I won't see the problem? Because if I do: a

Re: sha1Of() crashing and incorrect result on win64

2014-03-06 Thread Rainer Schuetze
On 06.03.2014 09:15, knutaf wrote: Hello, Apologies if I have missed some rule or convention in posting this. I'm new to this site and to D as a whole. I do all of my development on Windows and in general try to keep my programs as 64-bit unless I have a reason not to. I tried the following s

Re: sha1Of() crashing and incorrect result on win64

2014-03-06 Thread dnewbie
It works with DMD/Phobos from GIT.

Re: sha1Of() crashing and incorrect result on win64

2014-03-06 Thread knutaf
On Thursday, 6 March 2014 at 16:58:00 UTC, Peter Alexander wrote: Known issue https://d.puremagic.com/issues/show_bug.cgi?id=9279 Thanks. Is this suggesting that if I don't use toHexString, I won't see the problem? Because if I do: auto result = sha1Of("abc"); writefln("%s", result[0]); I

Re: sha1Of() crashing and incorrect result on win64

2014-03-06 Thread Peter Alexander
Known issue https://d.puremagic.com/issues/show_bug.cgi?id=9279

Re: sha1Of() crashing and incorrect result on win64

2014-03-06 Thread knutaf
On Thursday, 6 March 2014 at 16:37:21 UTC, Andrej Mitrovic wrote: On 3/6/14, dnewbie wrote: It doesn't work for me. Incorrect result & crash. dmd2.065 Hmm, could it be VC-related? I'm using VS2010: C:\dev\code\d_code>vcvars Setting environment for using Microsoft Visual Studio 2010 x86

Re: sha1Of() crashing and incorrect result on win64

2014-03-06 Thread Andrej Mitrovic
On 3/6/14, dnewbie wrote: > It doesn't work for me. Incorrect result & crash. > dmd2.065 Hmm, could it be VC-related? I'm using VS2010: C:\dev\code\d_code>vcvars Setting environment for using Microsoft Visual Studio 2010 x86 tools. C:\dev\code\d_code>dmd -m64 -run test.d A9993E364706816ABA

Re: sha1Of() crashing and incorrect result on win64

2014-03-06 Thread dnewbie
On Thursday, 6 March 2014 at 15:56:07 UTC, Andrej Mitrovic wrote: On 3/6/14, knutaf wrote: and then crashes. If I build without -m64, I get A9993E364706816ABA3E25717850C26C9CD0D89D, which is what I was expecting. It works fine for me using 2.064 and 2.065, both with and without -m64. It do

Re: sha1Of() crashing and incorrect result on win64

2014-03-06 Thread Andrej Mitrovic
On 3/6/14, knutaf wrote: > and then crashes. If I build without -m64, I get > A9993E364706816ABA3E25717850C26C9CD0D89D, which is what I was > expecting. It works fine for me using 2.064 and 2.065, both with and without -m64.

Re: sha1Of() crashing and incorrect result on win64

2014-03-06 Thread John Colvin
On Thursday, 6 March 2014 at 08:15:55 UTC, knutaf wrote: Hello, Apologies if I have missed some rule or convention in posting this. I'm new to this site and to D as a whole. I do all of my development on Windows and in general try to keep my programs as 64-bit unless I have a reason not to.

sha1Of() crashing and incorrect result on win64

2014-03-06 Thread knutaf
Hello, Apologies if I have missed some rule or convention in posting this. I'm new to this site and to D as a whole. I do all of my development on Windows and in general try to keep my programs as 64-bit unless I have a reason not to. I tried the following simple program, but it seems to not