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:
Ralf Corsepius
2009-11-08 08:15:59 +00:00
parent 217282dbd6
commit 15baee5af9
2 changed files with 7 additions and 1 deletions

View File

@@ -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>
* itron/src/chg_pri.c, itron/src/cre_tsk.c,

View File

@@ -88,7 +88,7 @@ typedef struct rtems_capture_control_s
* The from_valid mask.
*/
#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.