From 625bb1d7ee99d1e9544e23b1246579a0370f9e81 Mon Sep 17 00:00:00 2001 From: Azusa Yamaguchi Date: Tue, 16 Jun 2015 14:04:33 +0100 Subject: [PATCH] pointer cast --- lib/AlignedAllocator.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/AlignedAllocator.h b/lib/AlignedAllocator.h index fd7bbb78..3e90371a 100644 --- a/lib/AlignedAllocator.h +++ b/lib/AlignedAllocator.h @@ -49,9 +49,9 @@ public: void deallocate(pointer __p, size_type) { #ifdef HAVE_MM_MALLOC_H - _mm_free(__p); + _mm_free((void *)__p); #else - free(__p); + free((void *)__p); #endif } void construct(pointer __p, const _Tp& __val) { };