Ticket #46372

FC_PTR_TO_INT() not working under c23

Open Date: 2022-12-27 12:22 Last Update: 2023-01-13 15:22

Reporter:
Owner:
Type:
Status:
Closed
Component:
MileStone:
Priority:
5 - Medium
Severity:
5 - Medium
Resolution:
Fixed
File:
2

Details

In C23 mode I've got compile failure from client options hash handling, that seems to be down to bad cast by FC_PTR_TO_INT()

Ticket History (3/7 Histories)

2022-12-27 12:22 Updated by: cazfi
  • New Ticket "FC_PTR_TO_INT() not working under c23" created
2022-12-29 14:42 Updated by: cazfi
  • Milestone Update from (None) to 3.0.6 (closed)
  • Component Update from (None) to General
2023-01-07 22:22 Updated by: cazfi
Comment

The problem is not the casts made by FC_PTR_TO_INT(), but the parameter passed to it; there's a bad cast to get PTR for FC_PTR_TO_INT() to cast forward.

Yes, these macros within macros ending up making four or five casts from one type to the next might be a bit insane, but I'm for just fixing them in the stable branches. Any bigger restructuring should take place in development branch only.

2023-01-07 23:34 Updated by: cazfi
  • Owner Update from (None) to cazfi
  • Resolution Update from None to Accepted
Comment

Also to S2_6.

2023-01-13 15:22 Updated by: cazfi
  • Status Update from Open to Closed
  • Resolution Update from Accepted to Fixed

Edit

Please login to add comment to this ticket » Login