Skip to content

Fix signed/unsigned warning in numeric shift#1348

Merged
matz merged 2 commits into
mruby:masterfrom
carsonmcdonald:shiftwarningfix
Jul 6, 2013
Merged

Fix signed/unsigned warning in numeric shift#1348
matz merged 2 commits into
mruby:masterfrom
carsonmcdonald:shiftwarningfix

Conversation

@carsonmcdonald
Copy link
Copy Markdown
Member

The lshift and rshift functions are both wrapped with code that test if width is negative and any negative value is changed to positive and the l/rshift call swapped.

matz added a commit that referenced this pull request Jul 6, 2013
Fix signed/unsigned warning in numeric shift
@matz matz merged commit 5f74721 into mruby:master Jul 6, 2013
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants