aboutsummaryrefslogtreecommitdiff
path: root/gcc/ada/expect.c
diff options
context:
space:
mode:
authorArnaud Charlet <charlet@gcc.gnu.org>2009-11-30 15:45:15 +0100
committerArnaud Charlet <charlet@gcc.gnu.org>2009-11-30 15:45:15 +0100
commit472574384b8f67271323021d216969c292fb2057 (patch)
treee7a407d411fe6cebd3380036f323670e2daea090 /gcc/ada/expect.c
parent0f79311b1012d84125088eaf252d6b8824b3bb81 (diff)
downloadgcc-472574384b8f67271323021d216969c292fb2057.zip
gcc-472574384b8f67271323021d216969c292fb2057.tar.gz
gcc-472574384b8f67271323021d216969c292fb2057.tar.bz2
[multiple changes]
2009-11-30 Pascal Obry <obry@adacore.com> * expect.c: Fix cast to avoid warnings in x86-64 Windows. 2009-11-30 Thomas Quinot <quinot@adacore.com> * gnat_rm.texi, s-sechas.adb, s-sechas.ads, s-shshco.adb, s-shshco.ads, g-md5.adb, g-md5.ads, g-sha256.ads, s-shsh64.adb, s-shsh64.ads, s-sehamd.adb, s-sehamd.ads, g-sha512.ads, g-sha1.adb, g-sha1.ads, Makefile.rtl, g-sha224.ads, g-sha384.ads, s-shsh32.adb, s-shsh32.ads, s-sehash.adb, s-sehash.ads: Reimplementation of GNAT.MD5 and GNAT.SHA1 to factor shared code and avoid unnecessary stack copies. Also introduce new functions SHA-{224,256,384,512} From-SVN: r154812
Diffstat (limited to 'gcc/ada/expect.c')
-rw-r--r--gcc/ada/expect.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/gcc/ada/expect.c b/gcc/ada/expect.c
index c013feb..4f0f73f 100644
--- a/gcc/ada/expect.c
+++ b/gcc/ada/expect.c
@@ -143,8 +143,8 @@ __gnat_pipe (int *fd)
HANDLE read, write;
CreatePipe (&read, &write, NULL, 0);
- fd[0]=_open_osfhandle ((long)read, 0);
- fd[1]=_open_osfhandle ((long)write, 0);
+ fd[0]=_open_osfhandle ((intptr_t)read, 0);
+ fd[1]=_open_osfhandle ((intptr_t)write, 0);
return 0; /* always success */
}