Skip to content

Commit f552736

Browse files
Use _aligned_malloc.
1 parent be574c8 commit f552736

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/statespace.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ class StateSpace {
4545
State CreateState() const {
4646
auto vector_size = sizeof(fp_type) * raw_size_;
4747
#ifdef _WIN32
48-
return State((fp_type*) _aligned_alloc(vector_size, 64), &_aligned_free);
48+
return State((fp_type*) _aligned_malloc(vector_size, 64), &_aligned_free);
4949
#else
5050
void* p = nullptr;
5151
if (posix_memalign(&p, 64, vector_size) == 0) {

0 commit comments

Comments
 (0)