]> Cypherpunks repositories - gostls13.git/commitdiff
runtime: cast to uintptr to match %p formatter.
authorKeith Randall <khr@golang.org>
Thu, 31 Jul 2014 03:24:03 +0000 (20:24 -0700)
committerKeith Randall <khr@golang.org>
Thu, 31 Jul 2014 03:24:03 +0000 (20:24 -0700)
LGTM=bradfitz
R=golang-codereviews, bradfitz
CC=golang-codereviews
https://golang.org/cl/121920043

src/pkg/runtime/os_windows_386.c

index 7ee7dedc1f7bac1c4af56c3e95f138e5f35e5494..02bc81adbf1ad5f0921b282667174c11a085d876 100644 (file)
@@ -97,7 +97,7 @@ runtime·sighandler(ExceptionRecord *info, Context *r, G *gp)
        runtime·panicking = 1;
 
        runtime·printf("Exception %x %p %p %p\n", info->ExceptionCode,
-               info->ExceptionInformation[0], info->ExceptionInformation[1], r->Eip);
+               (uintptr)info->ExceptionInformation[0], (uintptr)info->ExceptionInformation[1], (uintptr)r->Eip);
 
        runtime·printf("PC=%x\n", r->Eip);
        if(g->m->lockedg != nil && g->m->ncgo > 0 && gp == g->m->g0) {