summaryrefslogtreecommitdiffstats
path: root/host/tests/addr_test.cpp
diff options
context:
space:
mode:
authorJosh Blum <josh@joshknows.com>2012-05-08 14:14:21 -0700
committerJosh Blum <josh@joshknows.com>2012-05-08 14:14:21 -0700
commit8a98d68933265f043bf95f9f273f9829619114c8 (patch)
tree7432f0182b9d04db2a56634a95904efe8c74b27c /host/tests/addr_test.cpp
parentc42c02f03774db7df34a09c021e907ca7a048d46 (diff)
downloaduhd-8a98d68933265f043bf95f9f273f9829619114c8.tar.gz
uhd-8a98d68933265f043bf95f9f273f9829619114c8.tar.bz2
uhd-8a98d68933265f043bf95f9f273f9829619114c8.zip
convert: fixed sc8 convert issue w/ undefined behaviour
Its important to use a signed cast when converting float to int. Then assign that signed int to an unsigned type of the same width. Its undefined behaviour when converting a negative float to an unsigned int.
Diffstat (limited to 'host/tests/addr_test.cpp')
0 files changed, 0 insertions, 0 deletions