Commit e065dcdd authored by Matthew Fernandez's avatar Matthew Fernandez
Browse files

fix: avoid negative comparison in shift with unsigned value_t

When value_t is unsigned, the guards in lsh() and rsh() can match for shift
values that are actually in range, causing these functions to erroneously return
0. Surprisingly this only currently seems visible on FreeBSD using the rsh-and.m
test case.
parent ef6a7200
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment