From 3d108ee6842209977a968809f140a5695f4da365 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jernej=20Krempu=C5=A1?= Date: Sun, 5 Aug 2012 17:34:03 +0200 Subject: [PATCH] Fixed a bug in gen/tollvm.cpp. --- gen/tollvm.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gen/tollvm.cpp b/gen/tollvm.cpp index 66d05fb7..64b2e55b 100644 --- a/gen/tollvm.cpp +++ b/gen/tollvm.cpp @@ -596,7 +596,7 @@ LLConstant* DtoConstFP(Type* t, longdouble value) else if(llty == LLType::getX86_FP80Ty(gIR->context())) { uint64_t bits[] = {0, 0}; bits[0] = *reinterpret_cast(&value); - bits[1] = *reinterpret_cast(reinterpret_cast(&value + 1)); + bits[1] = *reinterpret_cast(reinterpret_cast(&value) + 1); return LLConstantFP::get(gIR->context(), APFloat(APInt(80, 2, bits))); } else { assert(0 && "Unknown floating point type encountered");