harmony-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From gshiman...@apache.org
Subject svn commit: r488669 - /harmony/enhanced/drlvm/trunk/vm/gc_gen/src/utils/bit_ops.h
Date Tue, 19 Dec 2006 13:22:50 GMT
Author: gshimansky
Date: Tue Dec 19 05:22:49 2006
New Revision: 488669

URL: http://svn.apache.org/viewvc?view=rev&rev=488669
Log:
Applied HARMONY-2792 [drlvm][build] gc_gen breaks compilation with intel compiler in debug
mode.


Modified:
    harmony/enhanced/drlvm/trunk/vm/gc_gen/src/utils/bit_ops.h

Modified: harmony/enhanced/drlvm/trunk/vm/gc_gen/src/utils/bit_ops.h
URL: http://svn.apache.org/viewvc/harmony/enhanced/drlvm/trunk/vm/gc_gen/src/utils/bit_ops.h?view=diff&rev=488669&r1=488668&r2=488669
==============================================================================
--- harmony/enhanced/drlvm/trunk/vm/gc_gen/src/utils/bit_ops.h (original)
+++ harmony/enhanced/drlvm/trunk/vm/gc_gen/src/utils/bit_ops.h Tue Dec 19 05:22:49 2006
@@ -52,7 +52,7 @@
 {
   unsigned int bit_offset;
   
-  assert((start_idx >= 0) && (start_idx < 128));
+  assert(start_idx < 128);
   
   unsigned int start_word_index = start_idx >> BIT_SHIFT_TO_BITS_PER_WORD;
   unsigned int start_bit_offset = start_idx & BIT_MASK_TO_BITS_PER_WORD;
@@ -79,7 +79,7 @@
 
 inline void words_set_bit(unsigned int* words, unsigned int count, unsigned int start_idx)
 {
-  assert((start_idx >= 0) && (start_idx < 128));
+  assert(start_idx < 128);
   
   unsigned int word_index = start_idx >> BIT_SHIFT_TO_BITS_PER_WORD;	
   unsigned int bit_offset = start_idx & BIT_MASK_TO_BITS_PER_WORD;
@@ -98,7 +98,7 @@
 
 inline void words_clear_bit(unsigned int* words, unsigned int count, unsigned int start_idx)
 {
-  assert((start_idx >= 0) && (start_idx < 128));
+  assert(start_idx < 128);
   
   unsigned int word_index = start_idx >> BIT_SHIFT_TO_BITS_PER_WORD;
   unsigned int bit_offset = start_idx & BIT_MASK_TO_BITS_PER_WORD;



Mime
View raw message