view src/dcmtk-1-explicit-cast.patch @ 1370:b1f3e339a54b

add missing comments to patches
author Volker Grabsch <vog@notjusthosting.com>
date Tue, 16 Nov 2010 18:53:50 +0100
parents 4c2e54c1a378
children
line wrap: on
line source

This file is part of mingw-cross-env.
See doc/index.html for further information.

This patch has been taken from:
http://forum.dcmtk.org/viewtopic.php?t=2563

--- dcmtk-3.5.4.orig/ofstd/libsrc/ofthread.cc	2005-12-08 16:49:02.000000000 +0100
+++ dcmtk-3.5.4/ofstd/libsrc/ofthread.cc	2010-06-15 21:34:29.234201660 +0200
@@ -139,7 +139,7 @@
   theThreadHandle = _beginthreadex(NULL, 0, thread_stub, (void *)this, 0, &tid);
   if (theThreadHandle == 0) return errno; else
   {
-    theThread = tid;
+    theThread = (void *)tid;
     return 0;
   }
 #elif defined(POSIX_INTERFACE)
@@ -195,7 +195,7 @@
 #endif
 {
 #ifdef WINDOWS_INTERFACE
-  if (theThread == tID) return OFTrue; else return OFFalse;
+  if (theThread == (void *)tID) return OFTrue; else return OFFalse;
 #elif defined(POSIX_INTERFACE)
 #ifdef HAVE_POINTER_TYPE_PTHREAD_T
   // dangerous - we cast an unsigned long back to a pointer type and hope that it is still valid