PacktPublishing / Extreme-C

Extreme C, published by Packt
MIT License
314 stars 129 forks source link

Change order of checking for no. of bytes. #1

Closed kennethjohnsen closed 4 years ago

kennethjohnsen commented 4 years ago

If you have e.g 0b11100000 & 0b11000000, it would also equal 0b11000000. So, one solution is to check for 0b11110000 first, and then 0b11100000 etc. There may be better ways of doing it. By the way, really enjoying the book. Best technical book I have read in a long time!

kamcpp commented 4 years ago

Hey Kenneth, thanks for the feedback. Really appreciate it! I'll double check your PR and hopefully merge it tomorrow. Thanks again for the correction/improvement! 👍🏼

And I'm grateful for your comment on the book! I'm really glad that you enjoyed it.