Changeset 2935 for trunk/test_more


Ignore:
Timestamp:
Oct 12, 2013 3:40:01 PM (6 years ago)
Author:
bradbell
Message:

check_svn_id.sh: Ignore bug/build directory.
std_vector.sh: Add copyright message.
rev_sparse_hes.cpp: Fix problem on OSX systems.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/test_more/rev_sparse_hes.cpp

    r2859 r2935  
    494494                {       Check[ i * n + j] = false;
    495495                        for(k = 0; k < n; k++)
    496                                 Check[i * n + j] |= F2[i * n + k] & r[ k * n + j];
     496                        {       // some gcc versions std::vector<bool> do not support |=
     497                                // on elements (because they pack the bits).
     498                                bool tmp         = Check[i * n + j];
     499                                Check[i * n + j] = tmp | (F2[i * n + k] & r[ k * n + j]);
     500                        }
    497501                }
    498502        }
Note: See TracChangeset for help on using the changeset viewer.