std.io.driver.globalDriver(): Fix invalid reinterpret-cast#30
std.io.driver.globalDriver(): Fix invalid reinterpret-cast#30schveiguy merged 1 commit intoschveiguy:masterfrom
Conversation
|
Why is the cast invalid? It's changing from |
|
Reinterpreting an interface reference as class reference doesn't offset as it should, because the |
|
It should all be in the realm of interface, there are no classes here. |
|
Crap, I misread what was being deleted and added. Yes, your new code should be right. |
|
I'm going to put your code in with #28 instead of here, because the current CI doesn't test properly (yet), it uses the latest DMD which has a broken cas. |
|
Actually, I just decided to pull it. It's obviously correct. And I'd like to keep #28 focused on adding the meson build (even though it does technically also fix the normal build). |
No description provided.