ENGINE-347: fixed illegal shift in message ID production
authorKrista Bennett <krista@pep-project.org>
Wed, 28 Feb 2018 15:59:16 +0100
changeset 2551a5ea813f1315
parent 2550 02d3455902ba
child 2552 09d77d1177ce
ENGINE-347: fixed illegal shift in message ID production
src/message_api.c
     1.1 --- a/src/message_api.c	Wed Feb 28 14:56:00 2018 +0100
     1.2 +++ b/src/message_api.c	Wed Feb 28 15:59:16 2018 +0100
     1.3 @@ -441,7 +441,7 @@
     1.4  
     1.5          output_value |= temp_val;
     1.6  
     1.7 -        i -= num_bits; 
     1.8 +        i -= _MIN(num_bits, i); 
     1.9          
    1.10          bitshift = _MIN(num_bits, i);
    1.11          output_value <<= bitshift;