summaryrefslogtreecommitdiffstats
path: root/cpukit/include/rtems/rtems/partimpl.h
diff options
context:
space:
mode:
authorSebastian Huber <sebastian.huber@embedded-brains.de>2018-08-06 11:53:42 +0200
committerSebastian Huber <sebastian.huber@embedded-brains.de>2018-08-10 07:14:43 +0200
commitb2de4260c5c71e518742731a8cdebe3411937181 (patch)
treef61b88bcb073b9787b25f280b3eac2b3408a8448 /cpukit/include/rtems/rtems/partimpl.h
parentrtems: Parameter types in rtems_partition_create() (diff)
downloadrtems-b2de4260c5c71e518742731a8cdebe3411937181.tar.bz2
score: Fix _Addresses_Subtract()
Use architecture-specific integer type for an address difference. Update #3486.
Diffstat (limited to 'cpukit/include/rtems/rtems/partimpl.h')
-rw-r--r--cpukit/include/rtems/rtems/partimpl.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/cpukit/include/rtems/rtems/partimpl.h b/cpukit/include/rtems/rtems/partimpl.h
index ff857708f0..02d3ff8b44 100644
--- a/cpukit/include/rtems/rtems/partimpl.h
+++ b/cpukit/include/rtems/rtems/partimpl.h
@@ -77,9 +77,9 @@ RTEMS_INLINE_ROUTINE bool _Partition_Is_buffer_on_boundary (
Partition_Control *the_partition
)
{
- uint32_t offset;
+ intptr_t offset;
- offset = (uint32_t) _Addresses_Subtract(
+ offset = _Addresses_Subtract(
the_buffer,
the_partition->starting_address
);