kvasir-io / Kvasir

C++ Metaprogramming library enabling better static checking and register abstraction in embedded software
Apache License 2.0
409 stars 40 forks source link

maskFromRange should work on unsigned not signed ints #96

Open odinthenerd opened 7 years ago

odinthenerd commented 7 years ago

maskFromRange(31,0) should turn into 0xFFFFFFFF but gives error because I used an int rather than unsigned, essentially everything that is a mask or an address should be unsigned in all of Kvasir::Register.