[pkg-opensc-commit] [pkcs11-helper] 177/253: Better solve win64 casting

Eric Dorland eric at moszumanska.debian.org
Fri Jan 6 23:39:17 UTC 2017


This is an automated email from the git hooks/post-receive script.

eric pushed a commit to branch master
in repository pkcs11-helper.

commit e215f16ef959db38ca0ef990642df287c3960cf6
Author: Alon Bar-Lev <alon.barlev at gmail.com>
Date:   Thu Nov 6 20:54:11 2008 +0000

    Better solve win64 casting
---
 lib/pkcs11h-threading.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/lib/pkcs11h-threading.c b/lib/pkcs11h-threading.c
index 2b978c2..b2f3fe2 100644
--- a/lib/pkcs11h-threading.c
+++ b/lib/pkcs11h-threading.c
@@ -474,7 +474,7 @@ ___pkcs11h_thread_start (void *p) {
 	___pkcs11h_thread_data_t *_data = (___pkcs11h_thread_data_t *)p;
 	unsigned ret;
 
-	ret = (unsigned)((LONGLONG)_data->start (_data->data) & 0xffffffff);
+	ret = (unsigned)(_data->start (_data->data) - (void*)0);
 
 	_pkcs11h_mem_free ((void *)&_data);
 

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-opensc/pkcs11-helper.git



More information about the pkg-opensc-commit mailing list