@@ -1324,7 +1324,7 @@ ACE_Message_Queue<ACE_SYNCH_USE, TIME_POLICY>::enqueue_head_i (ACE_Message_Block
13241324 if (this ->signal_dequeue_waiters () == -1 )
13251325 return -1 ;
13261326 else
1327- return ACE_Utils::truncate_cast <int > (this ->cur_count_ );
1327+ return static_cast <int > (this ->cur_count_ );
13281328}
13291329
13301330// Actually put the node at its proper position relative to its
@@ -1515,7 +1515,7 @@ ACE_Message_Queue<ACE_SYNCH_USE, TIME_POLICY>::dequeue_head_i (ACE_Message_Block
15151515 && this ->signal_enqueue_waiters () == -1 )
15161516 return -1 ;
15171517 else
1518- return ACE_Utils::truncate_cast <int > (this ->cur_count_ );
1518+ return static_cast <int > (this ->cur_count_ );
15191519}
15201520
15211521// Get the earliest (i.e., FIFO) ACE_Message_Block with the lowest
@@ -1591,7 +1591,7 @@ ACE_Message_Queue<ACE_SYNCH_USE, TIME_POLICY>::dequeue_prio_i (ACE_Message_Block
15911591 && this ->signal_enqueue_waiters () == -1 )
15921592 return -1 ;
15931593 else
1594- return ACE_Utils::truncate_cast <int > (this ->cur_count_ );
1594+ return static_cast <int > (this ->cur_count_ );
15951595}
15961596
15971597// Actually get the last ACE_Message_Block (no locking, so must be
@@ -1640,7 +1640,7 @@ ACE_Message_Queue<ACE_SYNCH_USE, TIME_POLICY>::dequeue_tail_i (ACE_Message_Block
16401640 && this ->signal_enqueue_waiters () == -1 )
16411641 return -1 ;
16421642 else
1643- return ACE_Utils::truncate_cast <int > (this ->cur_count_ );
1643+ return static_cast <int > (this ->cur_count_ );
16441644}
16451645
16461646// Actually get the ACE_Message_Block with the lowest deadline time
@@ -1735,7 +1735,7 @@ ACE_Message_Queue<ACE_SYNCH_USE, TIME_POLICY>::peek_dequeue_head (ACE_Message_Bl
17351735 return -1 ;
17361736
17371737 first_item = this ->head_ ;
1738- return ACE_Utils::truncate_cast <int > (static_cast < ssize_t > ( this ->cur_count_ ) );
1738+ return static_cast <int > (this ->cur_count_ );
17391739}
17401740
17411741template <ACE_SYNCH_DECL, class TIME_POLICY > int
@@ -2436,7 +2436,7 @@ ACE_Dynamic_Message_Queue<ACE_SYNCH_USE, TIME_POLICY>::enqueue_i (ACE_Message_Bl
24362436 }
24372437 else
24382438 {
2439- return ACE_Utils::truncate_cast <int > (this ->cur_count_ );
2439+ return static_cast <int > (this ->cur_count_ );
24402440 }
24412441}
24422442
@@ -2636,7 +2636,7 @@ ACE_Dynamic_Message_Queue<ACE_SYNCH_USE, TIME_POLICY>::dequeue_head_i (ACE_Messa
26362636 }
26372637 else
26382638 {
2639- return ACE_Utils::truncate_cast <int > (this ->cur_count_ );
2639+ return static_cast <int > (this ->cur_count_ );
26402640 }
26412641}
26422642
0 commit comments