src/share/vm/utilities/globalDefinitions.hpp

changeset 9619
71bd8f8ad1fb
parent 9614
bb44c0e88235
child 9637
eef07cd490d4
child 9667
1a1aec8c87b7
     1.1 --- a/src/share/vm/utilities/globalDefinitions.hpp	Tue Feb 19 10:06:13 2019 +0100
     1.2 +++ b/src/share/vm/utilities/globalDefinitions.hpp	Mon Nov 26 17:35:35 2018 +0100
     1.3 @@ -1232,16 +1232,16 @@
     1.4    if (value < 0) result = 0-result;
     1.5    return result;
     1.6  }
     1.7 -static inline unsigned long uabs(unsigned long n) {
     1.8 +static inline julong uabs(julong n) {
     1.9    union {
    1.10 -    unsigned long result;
    1.11 -    long value;
    1.12 +    julong result;
    1.13 +    jlong value;
    1.14    };
    1.15    result = n;
    1.16    if (value < 0) result = 0-result;
    1.17    return result;
    1.18  }
    1.19 -static inline unsigned long uabs(jlong n) { return uabs((unsigned long)n); }
    1.20 +static inline julong uabs(jlong n) { return uabs((julong)n); }
    1.21  static inline unsigned int uabs(int n) { return uabs((unsigned int)n); }
    1.22  
    1.23  // "to" should be greater than "from."

mercurial