Skip to content
This repository has been archived by the owner on Jul 7, 2020. It is now read-only.

I think should check value before set it to bits. #129

Open
wants to merge 5 commits into
base: master
Choose a base branch
from

Conversation

wangchuan2008888
Copy link

RegisterSet class set and updateIfGreater method update value, but have not check weather the value greater than 0x1f.

may be that is a bug.

…ve not check weather the value greater than 0x1f.

may be that is a bug.
@abramsm
Copy link
Contributor

abramsm commented Mar 17, 2017

This looks like a nice improvement. Can you add a test that would have failed without the check? We aren't sure that the additions you made to the test would have failed even with the old code.

… have not check the value.

and I think maybe change the 0x1F depends on RegisterSet.REGISTER would be better.
@wangchuan2008888
Copy link
Author

I write back the RegisterSet, now the test would be FAIL,
Sorry for fresher to GitHub, I donot know is there better way to show you this change

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants