diff --git a/lib/lbfgs.c b/lib/lbfgs.c index 7a466de..0d099ee 100644 --- a/lib/lbfgs.c +++ b/lib/lbfgs.c @@ -290,7 +290,7 @@ int lbfgs( if (n % 8 != 0) { return LBFGSERR_INVALID_N_SSE; } - if ((uintptr_t)(const void*)x % 16 == 0) { + if ((uintptr_t)(const void*)x % 16 != 0) { return LBFGSERR_INVALID_X_SSE; } #endif/*defined(USE_SSE)*/