Fix format specifier for GetLastError

Project: http://git-wip-us.apache.org/repos/asf/lucy-clownfish/repo
Commit: http://git-wip-us.apache.org/repos/asf/lucy-clownfish/commit/32391ee9
Tree: http://git-wip-us.apache.org/repos/asf/lucy-clownfish/tree/32391ee9
Diff: http://git-wip-us.apache.org/repos/asf/lucy-clownfish/diff/32391ee9

Branch: refs/heads/master
Commit: 32391ee98104351b733cf18527e379b3fbf6b44b
Parents: 1b135aa
Author: Nick Wellnhofer <[email protected]>
Authored: Wed Jul 6 12:16:35 2016 +0200
Committer: Nick Wellnhofer <[email protected]>
Committed: Wed Jul 6 12:16:35 2016 +0200

----------------------------------------------------------------------
 runtime/c/src/tls.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/lucy-clownfish/blob/32391ee9/runtime/c/src/tls.c
----------------------------------------------------------------------
diff --git a/runtime/c/src/tls.c b/runtime/c/src/tls.c
index 448049a..3aeb804 100644
--- a/runtime/c/src/tls.c
+++ b/runtime/c/src/tls.c
@@ -69,7 +69,7 @@ Tls_get_err_context() {
     if (!context) {
         context = (ErrContext*)CALLOCATE(1, sizeof(ErrContext));
         if (!TlsSetValue(err_context_tls_index, context)) {
-            fprintf(stderr, "TlsSetValue failed: %d\n", GetLastError());
+            fprintf(stderr, "TlsSetValue failed: %lu\n", GetLastError());
             abort();
         }
     }

Reply via email to