]> git.ipfire.org Git - thirdparty/valgrind.git/commitdiff
Use ULong instead of unsigned long in s390_irgen_EX_SS.
authorMark Wielaard <mark@klomp.org>
Wed, 27 Mar 2019 14:51:34 +0000 (15:51 +0100)
committerMark Wielaard <mark@klomp.org>
Wed, 27 Mar 2019 14:51:34 +0000 (15:51 +0100)
ovl was defined as an unsigned long. This would cause warnings from gcc:

  guest_s390_toIR.c:195:30: warning: right shift count >= width of type
  [-Wshift-count-overflow]

when building on 32bit arches, or building a 32bit secondary arch.

Fix this by defining ovl as ULong which is always guaranteed 64bit.

VEX/priv/guest_s390_toIR.c

index b4b8e3d412738b87c00b45da9a38253bd73976bc..acff370832eb0d829c53afa040ffa98deabe5bb7 100644 (file)
@@ -12745,7 +12745,7 @@ s390_irgen_EX_SS(UChar r, IRTemp addr2,
    IRTemp cond;
    IRDirty *d;
    IRTemp torun;
-   unsigned long ovl;
+   ULong ovl;
 
    IRTemp start1 = newTemp(Ity_I64);
    IRTemp start2 = newTemp(Ity_I64);