Commit 213c39a
committed
Allow freenect_set_tilt_degs to take a negative angle
I can't set a negative angle using gcc 4.8.2 for ARM since negative double values get clamped to 0x0 when casted to uint16_t, as one would expect. Oddly it works on a x86_64 build.
Fix the issue by casting the double to int16_t instead.
Signed-off-by: Jocelyn Turcotte <[email protected]>1 parent 9b671cd commit 213c39a
1 file changed
+1
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
239 | 239 | | |
240 | 240 | | |
241 | 241 | | |
242 | | - | |
| 242 | + | |
243 | 243 | | |
244 | 244 | | |
245 | 245 | | |
| |||
0 commit comments