]> sigrok.org Git - libsigrok.git/commit
sr_analog_to_float: Avoid comparison between signed and unsigned.
authorMartin Ling <redacted>
Mon, 7 Sep 2015 08:15:52 +0000 (09:15 +0100)
committerUwe Hermann <redacted>
Sun, 20 Sep 2015 22:32:26 +0000 (00:32 +0200)
commitb07a1b04e5da31e02b45ddd32e6b006b0329e02c
treedc94a785538abf9f9b77c37247a9c88bf999c4be
parent53e5d3d14d30707ea7d84e75e469314a0ae570bf
sr_analog_to_float: Avoid comparison between signed and unsigned.

The check for p == q is basically checking whether p/q == 1. We should
be normalising the rational before it gets here though, so in this case
we should have p == q == 1 here.
src/analog.c