@@ -1329,7 +1329,7 @@ ACE_Message_Queue<ACE_SYNCH_USE, TIME_POLICY>::enqueue_head_i (ACE_Message_Block
13291329 if (this ->signal_dequeue_waiters () == -1 )
13301330 return -1 ;
13311331 else
1332- return ACE_Utils::truncate_cast <int > (this ->cur_count_ );
1332+ return static_cast <int > (this ->cur_count_ );
13331333}
13341334
13351335// Actually put the node at its proper position relative to its
@@ -1520,7 +1520,7 @@ ACE_Message_Queue<ACE_SYNCH_USE, TIME_POLICY>::dequeue_head_i (ACE_Message_Block
15201520 && this ->signal_enqueue_waiters () == -1 )
15211521 return -1 ;
15221522 else
1523- return ACE_Utils::truncate_cast <int > (this ->cur_count_ );
1523+ return static_cast <int > (this ->cur_count_ );
15241524}
15251525
15261526// Get the earliest (i.e., FIFO) ACE_Message_Block with the lowest
@@ -1596,7 +1596,7 @@ ACE_Message_Queue<ACE_SYNCH_USE, TIME_POLICY>::dequeue_prio_i (ACE_Message_Block
15961596 && this ->signal_enqueue_waiters () == -1 )
15971597 return -1 ;
15981598 else
1599- return ACE_Utils::truncate_cast <int > (this ->cur_count_ );
1599+ return static_cast <int > (this ->cur_count_ );
16001600}
16011601
16021602// Actually get the last ACE_Message_Block (no locking, so must be
@@ -1645,7 +1645,7 @@ ACE_Message_Queue<ACE_SYNCH_USE, TIME_POLICY>::dequeue_tail_i (ACE_Message_Block
16451645 && this ->signal_enqueue_waiters () == -1 )
16461646 return -1 ;
16471647 else
1648- return ACE_Utils::truncate_cast <int > (this ->cur_count_ );
1648+ return static_cast <int > (this ->cur_count_ );
16491649}
16501650
16511651// Actually get the ACE_Message_Block with the lowest deadline time
@@ -1740,7 +1740,7 @@ ACE_Message_Queue<ACE_SYNCH_USE, TIME_POLICY>::peek_dequeue_head (ACE_Message_Bl
17401740 return -1 ;
17411741
17421742 first_item = this ->head_ ;
1743- return ACE_Utils::truncate_cast <int > (static_cast < ssize_t > ( this ->cur_count_ ) );
1743+ return static_cast <int > (this ->cur_count_ );
17441744}
17451745
17461746template <ACE_SYNCH_DECL, class TIME_POLICY > int
@@ -2441,7 +2441,7 @@ ACE_Dynamic_Message_Queue<ACE_SYNCH_USE, TIME_POLICY>::enqueue_i (ACE_Message_Bl
24412441 }
24422442 else
24432443 {
2444- return ACE_Utils::truncate_cast <int > (this ->cur_count_ );
2444+ return static_cast <int > (this ->cur_count_ );
24452445 }
24462446}
24472447
@@ -2641,7 +2641,7 @@ ACE_Dynamic_Message_Queue<ACE_SYNCH_USE, TIME_POLICY>::dequeue_head_i (ACE_Messa
26412641 }
26422642 else
26432643 {
2644- return ACE_Utils::truncate_cast <int > (this ->cur_count_ );
2644+ return static_cast <int > (this ->cur_count_ );
26452645 }
26462646}
26472647
0 commit comments