stream-lib
stream-lib copied to clipboard
I think should check value before set it to bits.
RegisterSet class set and updateIfGreater method update value, but have not check weather the value greater than 0x1f.
may be that is a bug.
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.
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