From a1fcf599faa023d1752b37aef215d80286e76839 Mon Sep 17 00:00:00 2001 From: Benoit Steiner Date: Thu, 10 Apr 2014 11:19:37 -0700 Subject: [PATCH 1/2] Silenced a compilation warning produced by nvcc. --- Eigen/src/Core/util/Memory.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Eigen/src/Core/util/Memory.h b/Eigen/src/Core/util/Memory.h index 0f8ab065a..1a1d3e98d 100644 --- a/Eigen/src/Core/util/Memory.h +++ b/Eigen/src/Core/util/Memory.h @@ -89,7 +89,7 @@ inline void throw_std_bad_alloc() #ifdef EIGEN_EXCEPTIONS throw std::bad_alloc(); #else - std::size_t huge = -1; + std::size_t huge = -1ULL; new int[huge]; #endif } From 1b333c89c9762795fda69f29a1239541a712f4f1 Mon Sep 17 00:00:00 2001 From: Benoit Steiner Date: Thu, 10 Apr 2014 17:43:13 -0700 Subject: [PATCH 2/2] Updated my previous fix to avoid introducing a compilation warning on ARM platforms. --- Eigen/src/Core/util/Memory.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Eigen/src/Core/util/Memory.h b/Eigen/src/Core/util/Memory.h index 1a1d3e98d..4988be5d9 100644 --- a/Eigen/src/Core/util/Memory.h +++ b/Eigen/src/Core/util/Memory.h @@ -89,7 +89,7 @@ inline void throw_std_bad_alloc() #ifdef EIGEN_EXCEPTIONS throw std::bad_alloc(); #else - std::size_t huge = -1ULL; + std::size_t huge = static_cast(-1); new int[huge]; #endif }