forked from Imagelibrary/rtems
2009-11-08 Ralf Corsépius <ralf.corsepius@rtems.org>
* libmisc/capture/capture.h (RTEMS_CAPTURE_CONTROL_FROM_MASK): Use UINT32_C(1) to avoid overflow in implict typecast on 16bit targets.
This commit is contained in:
@@ -1,3 +1,9 @@
|
|||||||
|
2009-11-08 Ralf Corsépius <ralf.corsepius@rtems.org>
|
||||||
|
|
||||||
|
* libmisc/capture/capture.h (RTEMS_CAPTURE_CONTROL_FROM_MASK):
|
||||||
|
Use UINT32_C(1) to avoid overflow in implict typecast on 16bit
|
||||||
|
targets.
|
||||||
|
|
||||||
2009-11-03 Ralf Corsépius <ralf.corsepius@rtems.org>
|
2009-11-03 Ralf Corsépius <ralf.corsepius@rtems.org>
|
||||||
|
|
||||||
* itron/src/chg_pri.c, itron/src/cre_tsk.c,
|
* itron/src/chg_pri.c, itron/src/cre_tsk.c,
|
||||||
|
|||||||
@@ -88,7 +88,7 @@ typedef struct rtems_capture_control_s
|
|||||||
* The from_valid mask.
|
* The from_valid mask.
|
||||||
*/
|
*/
|
||||||
#define RTEMS_CAPTURE_CONTROL_FROM_MASK(_s) \
|
#define RTEMS_CAPTURE_CONTROL_FROM_MASK(_s) \
|
||||||
(1 << (RTEMS_CAPTURE_TRIGGER_TASKS - ((_s) + 1)))
|
(UINT32_C(1) << (RTEMS_CAPTURE_TRIGGER_TASKS - ((_s) + 1)))
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Control flags.
|
* Control flags.
|
||||||
|
|||||||
Reference in New Issue
Block a user