src/share/vm/gc_implementation/g1/concurrentG1Refine.hpp

changeset 2790
edd9b016deb6
parent 2713
02f49b66361a
child 3900
d2a62e0f25eb
     1.1 --- a/src/share/vm/gc_implementation/g1/concurrentG1Refine.hpp	Thu Apr 14 13:49:29 2011 -0700
     1.2 +++ b/src/share/vm/gc_implementation/g1/concurrentG1Refine.hpp	Fri Apr 15 10:10:50 2011 -0700
     1.3 @@ -172,7 +172,7 @@
     1.4  
     1.5    // hash a given key (index of card_ptr) with the specified size
     1.6    static unsigned int hash(size_t key, size_t size) {
     1.7 -    return (unsigned int) key % size;
     1.8 +    return (unsigned int) (key % size);
     1.9    }
    1.10  
    1.11    // hash a given key (index of card_ptr)
    1.12 @@ -180,11 +180,11 @@
    1.13      return hash(key, _n_card_counts);
    1.14    }
    1.15  
    1.16 -  unsigned ptr_2_card_num(jbyte* card_ptr) {
    1.17 -    return (unsigned) (card_ptr - _ct_bot);
    1.18 +  unsigned int ptr_2_card_num(jbyte* card_ptr) {
    1.19 +    return (unsigned int) (card_ptr - _ct_bot);
    1.20    }
    1.21  
    1.22 -  jbyte* card_num_2_ptr(unsigned card_num) {
    1.23 +  jbyte* card_num_2_ptr(unsigned int card_num) {
    1.24      return (jbyte*) (_ct_bot + card_num);
    1.25    }
    1.26  

mercurial