From 4a9771567e2cc45b8615fa4eae7e2f9b24b2042d Mon Sep 17 00:00:00 2001 From: Pawel Bylica Date: Tue, 19 May 2015 08:44:15 +0000 Subject: [PATCH] Fix getSwappedBytes for double. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@237673 91177308-0d34-0410-b5e6-96231b3b80d8 --- include/llvm/Support/SwapByteOrder.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/llvm/Support/SwapByteOrder.h b/include/llvm/Support/SwapByteOrder.h index 70564be890e..7761fa1d7e0 100644 --- a/include/llvm/Support/SwapByteOrder.h +++ b/include/llvm/Support/SwapByteOrder.h @@ -104,7 +104,7 @@ inline float getSwappedBytes(float C) { return out.f; } -inline float getSwappedBytes(double C) { +inline double getSwappedBytes(double C) { union { uint64_t i; double d;