This is an automated email from the ASF dual-hosted git repository.

cmcfarlen pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/trafficserver.git


The following commit(s) were added to refs/heads/master by this push:
     new f7f8773da6 cleanup cast warning with reinterpret_cast (#9866)
f7f8773da6 is described below

commit f7f8773da6be90fb181889326a7065b16fc41a7f
Author: Chris McFarlen <[email protected]>
AuthorDate: Fri Jun 16 16:13:45 2023 -0500

    cleanup cast warning with reinterpret_cast (#9866)
    
    Co-authored-by: Chris McFarlen <[email protected]>
---
 include/records/I_RecProcess.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/include/records/I_RecProcess.h b/include/records/I_RecProcess.h
index afc6694c57..ddeaeecfc5 100644
--- a/include/records/I_RecProcess.h
+++ b/include/records/I_RecProcess.h
@@ -108,7 +108,7 @@ raw_stat_get_tlp(RecRawStatBlock *rsb, int id, EThread 
*ethread)
   if (ethread == nullptr) {
     ethread = this_ethread();
   }
-  return (((RecRawStat *)((char *)(ethread) + rsb->ethr_stat_offset)) + id);
+  return ((reinterpret_cast<RecRawStat *>(reinterpret_cast<char *>(ethread) + 
rsb->ethr_stat_offset)) + id);
 }
 
 inline int

Reply via email to