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:
authorNikolay Bogoychev <nheart@gmail.com>2020-01-22 20:18:16 +0300
committerNikolay Bogoychev <nheart@gmail.com>2020-01-22 20:18:16 +0300
commit4eede3b46b07ff9a929c7c299408fc989055dc4f (patch)
tree4c1be928e2e64a48ad87058196a14310a62c201f
parent4f7a50b504b0bd3bbb8f0f9804ef8c4bfa97925e (diff)
typos
-rw-r--r--aligned.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/aligned.h b/aligned.h
index 1155a62..6e72afb 100644
--- a/aligned.h
+++ b/aligned.h
@@ -13,7 +13,7 @@ template <class T> class AlignedVector {
#ifdef __APPLE__
posix_memalign(reinterpret_cast<void **>(&mem_), 64, size * sizeof(T));
#else
- mem_ = aligned_alloc(64, (size * sizeof(T) + 63) & ~63))); # pedantic requirements for memory size on aligned_alloc in case it's not just a call to posix_memalign
+ mem_ = reinterpret_cast<T*>(aligned_alloc(64, (size * sizeof(T) + 63) & ~63)); // pedantic requirements for memory size on aligned_alloc in case it's not just a call to posix_memalign
#endif
}