Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/marian-nmt/intgemm/intgemm.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKenneth Heafield <github@kheafield.com>2020-08-11 01:46:31 +0300
committerKenneth Heafield <github@kheafield.com>2020-08-11 01:46:31 +0300
commit6b36c3590fcd2968073c9f3421506a3f27a1940a (patch)
tree6f4c49f430538016ed724f1579d331802e92d5c5
parent93ec281ae7fd8ddc2e2a302384e688d217ef9885 (diff)
MSVC cast
-rw-r--r--aligned.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/aligned.h b/aligned.h
index ad3d318..8ad7242 100644
--- a/aligned.h
+++ b/aligned.h
@@ -15,7 +15,7 @@ template <class T> class AlignedVector {
explicit AlignedVector(std::size_t size)
: size_(size) {
#ifdef _MSC_VER
- mem_ = _aligned_malloc(size * sizeof(T), 64);
+ mem_ = static_cast<T*>(_aligned_malloc(size * sizeof(T), 64));
if (!mem_) throw std::bad_alloc();
#else
if (posix_memalign(reinterpret_cast<void **>(&mem_), 64, size * sizeof(T))) {