From 67a9391f79dd50457395742d7e34db303ba0fe96 Mon Sep 17 00:00:00 2001 From: kai Date: Sun, 30 Jun 2013 22:30:13 +0200 Subject: [PATCH] Replace an old-style cast. --- gen/toir.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gen/toir.cpp b/gen/toir.cpp index d1ee19fe..fc502694 100644 --- a/gen/toir.cpp +++ b/gen/toir.cpp @@ -2953,7 +2953,7 @@ DValue* StructLiteralExp::toElem(IRState* p) // ready elements data assert(elements && "struct literal has null elements"); size_t nexprs = elements->dim; - Expression** exprs = (Expression**)elements->data; + Expression **exprs = reinterpret_cast(elements->data); // might be reset to an actual i8* value so only a single bitcast is emitted. LLValue* voidptr = inProgressMemory;