]> git.ipfire.org Git - thirdparty/valgrind.git/commitdiff
Bug 342008 - valgrind.h needs type cast for _zzq_default to compile with clang/llvm...
authorJulian Seward <jseward@acm.org>
Sun, 6 Sep 2015 13:10:22 +0000 (13:10 +0000)
committerJulian Seward <jseward@acm.org>
Sun, 6 Sep 2015 13:10:22 +0000 (13:10 +0000)
(arm64, that is)
Patch from chh@google.com.

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@15633

include/valgrind.h

index 4f170bc624dcc479b52c64acc6686dbc1fc1fed6..fc39e5305b9921e9164c606b915052710df12c62 100644 (file)
@@ -794,7 +794,8 @@ typedef
                      "orr x10, x10, x10\n\t"                      \
                      "mov %0, x3"     /*result*/                  \
                      : "=r" (_zzq_result)                         \
-                     : "r" (_zzq_default), "r" (&_zzq_args[0])    \
+                     : "r" ((unsigned long int)(_zzq_default)),   \
+                       "r" (&_zzq_args[0])                        \
                      : "cc","memory", "x3", "x4");                \
     _zzq_result;                                                  \
   })