summaryrefslogtreecommitdiffstats
path: root/cpukit/libmisc/capture/capture.h
diff options
context:
space:
mode:
authorRalf Corsepius <ralf.corsepius@rtems.org>2009-11-08 08:15:59 +0000
committerRalf Corsepius <ralf.corsepius@rtems.org>2009-11-08 08:15:59 +0000
commit15baee5af91546c04a79e0a0b4e19d204fdc5da3 (patch)
treef88016e700f9d5576583e23e3e1f219feca03ade /cpukit/libmisc/capture/capture.h
parentRegenerate. (diff)
downloadrtems-15baee5af91546c04a79e0a0b4e19d204fdc5da3.tar.bz2
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.
Diffstat (limited to 'cpukit/libmisc/capture/capture.h')
-rw-r--r--cpukit/libmisc/capture/capture.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/cpukit/libmisc/capture/capture.h b/cpukit/libmisc/capture/capture.h
index acc5fcd912..b96582f6bf 100644
--- a/cpukit/libmisc/capture/capture.h
+++ b/cpukit/libmisc/capture/capture.h
@@ -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.