diff options
Diffstat (limited to 'lib/libpthread/arch/amd64/include/pthread_md.h')
-rw-r--r-- | lib/libpthread/arch/amd64/include/pthread_md.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/libpthread/arch/amd64/include/pthread_md.h b/lib/libpthread/arch/amd64/include/pthread_md.h index 4f903c5..a7da5df 100644 --- a/lib/libpthread/arch/amd64/include/pthread_md.h +++ b/lib/libpthread/arch/amd64/include/pthread_md.h @@ -91,7 +91,7 @@ struct tcb { __asm __volatile("movq %%fs:%1, %0" \ : "=r" (__i) \ : "m" (*(u_long *)(__kcb_offset(name)))); \ - __result = *(__kcb_type(name) *)&__i; \ + __result = (__kcb_type(name))__i; \ \ __result; \ }) @@ -103,7 +103,7 @@ struct tcb { __kcb_type(name) __val = (val); \ \ u_long __i; \ - __i = *(u_long *)&__val; \ + __i = (u_long)__val; \ __asm __volatile("movq %1,%%fs:%0" \ : "=m" (*(u_long *)(__kcb_offset(name))) \ : "r" (__i)); \ |