diff options
author | Josh Blum <josh@joshknows.com> | 2010-04-14 17:42:39 -0700 |
---|---|---|
committer | Josh Blum <josh@joshknows.com> | 2010-04-14 17:42:39 -0700 |
commit | b9e7e38a84046fc345bcac12611205fbea0bef19 (patch) | |
tree | 08d3a26c05f8f2e05fa957bb6d4ed09e7488e9a5 /host/lib/ic_reg_maps | |
parent | f57f616cfd6406cd67681813d464695c8c160f9e (diff) | |
download | uhd-b9e7e38a84046fc345bcac12611205fbea0bef19.tar.gz uhd-b9e7e38a84046fc345bcac12611205fbea0bef19.tar.bz2 uhd-b9e7e38a84046fc345bcac12611205fbea0bef19.zip |
removed some windows warnings
Diffstat (limited to 'host/lib/ic_reg_maps')
-rw-r--r-- | host/lib/ic_reg_maps/gen_ad9777_regs.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/host/lib/ic_reg_maps/gen_ad9777_regs.py b/host/lib/ic_reg_maps/gen_ad9777_regs.py index 135d5c724..6077b61b6 100644 --- a/host/lib/ic_reg_maps/gen_ad9777_regs.py +++ b/host/lib/ic_reg_maps/gen_ad9777_regs.py @@ -129,13 +129,13 @@ struct ad9777_regs_t{ #end for } - boost::uint32_t get_reg(boost::uint8_t addr){ - boost::uint32_t reg = 0; + boost::uint8_t get_reg(boost::uint8_t addr){ + boost::uint8_t reg = 0; switch(addr){ #for $addr in sorted(set(map(lambda r: r.get_addr(), $regs))) case $addr: #for $reg in filter(lambda r: r.get_addr() == addr, $regs) - reg |= (boost::uint32_t($reg.get_name()) & $reg.get_mask()) << $reg.get_shift(); + reg |= (boost::uint8_t($reg.get_name()) & $reg.get_mask()) << $reg.get_shift(); #end for break; #end for |