Changeset 8a6452


Ignore:
Timestamp:
04/02/08 09:47:51 (4 years ago)
Author:
Tomash Brechko <tomash.brechko@…>
Branches:
ketama-compat
Parents:
e097b5
git-author:
Tomash Brechko <tomash.brechko@…> (04/02/08 09:47:51)
git-committer:
Tomash Brechko <tomash.brechko@…> (04/02/08 09:47:51)
Message:

Add U unsigned suffix to the constant.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/dispatch_key.c

    re097b5 r8a6452  
    133133  struct continuum_point *p; 
    134134  unsigned int crc32 = compute_crc32(key, key_len); 
    135   unsigned int hash = (crc32 >> 16) & 0x00007fff; 
     135  unsigned int hash = (crc32 >> 16) & 0x00007fffU; 
    136136  unsigned int point = hash % (unsigned int) (state->total_weight + 0.5); 
    137137 
Note: See TracChangeset for help on using the changeset viewer.