Skip to content

Commit

Permalink
fix bug at malloc
Browse files Browse the repository at this point in the history
  • Loading branch information
ChingChuan-Chen committed Feb 21, 2017
1 parent e5f21bd commit 62e9f66
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion inst/include/blaze/util/Memory.h
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ inline byte* allocate_backend( size_t size, size_t alignment )
#elif ( defined(_POSIX_ADVISORY_INFO) && (_POSIX_ADVISORY_INFO >= 200112L) )
if( posix_memalign( &raw, alignment, size ) ) {
#else
raw = (void*) malloc( size, alignment );
raw = (void*) malloc( size );
if( raw == NULL ) {
#endif
BLAZE_THROW_BAD_ALLOC;
Expand Down

0 comments on commit 62e9f66

Please sign in to comment.