Message383202
I propose to change types of function parameters and local variables. In any case the constructor checks the range of parameters, so there is no problem with packing them into compact structure.
This will help to avoid errors of implicit conversion between different integer types. Also it can help to avoid code duplication in parsing integers of different size and signedness.
Adding a static assertion about the signedness of uint8_t looks meaningless to me. |
|
Date |
User |
Action |
Args |
2020-12-16 19:08:22 | serhiy.storchaka | set | recipients:
+ serhiy.storchaka, ammar2, p-ganssle |
2020-12-16 19:08:22 | serhiy.storchaka | set | messageid: <1608145702.5.0.555023615679.issue42660@roundup.psfhosted.org> |
2020-12-16 19:08:22 | serhiy.storchaka | link | issue42660 messages |
2020-12-16 19:08:22 | serhiy.storchaka | create | |
|