Mentions légales du service

Skip to content
Snippets Groups Projects
Commit 4fc094d9 authored by hhakim's avatar hhakim
Browse files

Fix Visual Studio build errors with numeric_limits::max.

parent a1c040d2
No related branches found
No related tags found
No related merge requests found
......@@ -2,6 +2,7 @@
#define __FAUST_SVDTJ__
#include "faust_MatDense.h"
#include "faust_MatSparse.h"
#define NOMINMAX // avoids VS min/max issue with std::min/max
#include "faust_constant.h"
namespace Faust
......
......@@ -46,6 +46,8 @@
#include <chrono>
#include <cstdlib>
#include "faust_prng.h"
#include <climits>
#include <cfloat>
namespace Faust
{
......@@ -470,7 +472,7 @@ namespace Faust
{
if(std::find(std::begin(disabled_meths), std::end(disabled_meths), i) != std::end(disabled_meths))
{
times[i] = std::chrono::duration<double>(numeric_limits<double>::max());
times[i] = std::chrono::duration<double>(DBL_MAX);
continue;
}
this->set_FM_mul_mode(i);
......
#ifdef USE_GPU_MOD
#include <climits>
#include "faust_linear_algebra_gpu.h"
#endif
namespace Faust
......@@ -137,7 +138,7 @@ namespace Faust
init_fac_type_bools(factors[j], rf_dense, rf_sparse, rf_bsr);
k = i;
c[i][j] = std::numeric_limits<int>::max();
c[i][j] = INT_MAX;
auto lf_nrows = factors[i]->getNbRow();
auto lf_ncols = factors[i]->getNbCol();
auto rf_nrows = factors[j]->getNbRow();
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment