Fix mingw (#441)

This PR (#440) fixes portability issue of ffs on MinGW.
Co-authored-by: Pierre Jolivet <pierre@joliv.et>
Co-authored-by: Ruipeng Li <li50@euler.llnl.gov>
This commit is contained in:
Ruipeng Li 2021-08-05 09:58:26 -07:00 committed by GitHub
parent 9117fc20f2
commit b61461c909
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 2 deletions

View File

@ -1792,7 +1792,7 @@ static inline HYPRE_Int
first_lsb_bit_indx( hypre_uint x )
{
HYPRE_Int pos;
#if defined(_MSC_VER)
#if defined(_MSC_VER) || defined(__MINGW64__)
if (x == 0)
{
pos = 0;
@ -2880,3 +2880,4 @@ hypre_UnorderedBigIntMapPutIfAbsent( hypre_UnorderedBigIntMap *m,
#endif
#endif

View File

@ -133,7 +133,7 @@ static inline HYPRE_Int
first_lsb_bit_indx( hypre_uint x )
{
HYPRE_Int pos;
#if defined(_MSC_VER)
#if defined(_MSC_VER) || defined(__MINGW64__)
if (x == 0)
{
pos = 0;