summaryrefslogtreecommitdiffstats
path: root/cpukit/score/src
diff options
context:
space:
mode:
Diffstat (limited to 'cpukit/score/src')
-rw-r--r--cpukit/score/src/coremsgsubmit.c2
-rw-r--r--cpukit/score/src/objectallocate.c2
-rw-r--r--cpukit/score/src/objectfree.c4
3 files changed, 4 insertions, 4 deletions
diff --git a/cpukit/score/src/coremsgsubmit.c b/cpukit/score/src/coremsgsubmit.c
index 23f9f10256..a1cdae84ea 100644
--- a/cpukit/score/src/coremsgsubmit.c
+++ b/cpukit/score/src/coremsgsubmit.c
@@ -88,7 +88,7 @@ CORE_message_queue_Status _CORE_message_queue_Submit(
size
);
*(size_t *) the_thread->Wait.return_argument = size;
- the_thread->Wait.count = submit_type;
+ the_thread->Wait.count = (uint32_t) submit_type;
#if defined(RTEMS_MULTIPROCESSING)
if ( !_Objects_Is_local_id( the_thread->Object.id ) )
diff --git a/cpukit/score/src/objectallocate.c b/cpukit/score/src/objectallocate.c
index c924f39453..3a4e329ab6 100644
--- a/cpukit/score/src/objectallocate.c
+++ b/cpukit/score/src/objectallocate.c
@@ -73,7 +73,7 @@ Objects_Control *_Objects_Allocate(
if ( the_object ) {
uint32_t block;
- block = _Objects_Get_index( the_object->id ) -
+ block = (uint32_t) _Objects_Get_index( the_object->id ) -
_Objects_Get_index( information->minimum_id );
block /= information->allocation_size;
diff --git a/cpukit/score/src/objectfree.c b/cpukit/score/src/objectfree.c
index af12a0fe8b..f74394d0fa 100644
--- a/cpukit/score/src/objectfree.c
+++ b/cpukit/score/src/objectfree.c
@@ -50,8 +50,8 @@ void _Objects_Free(
if ( information->auto_extend ) {
uint32_t block;
- block =
- _Objects_Get_index( the_object->id ) - _Objects_Get_index( information->minimum_id );
+ block = (uint32_t) (_Objects_Get_index( the_object->id ) -
+ _Objects_Get_index( information->minimum_id ));
block /= information->allocation_size;
information->inactive_per_block[ block ]++;