Commit 0a884057 authored by berenger-bramas's avatar berenger-bramas
Browse files

Use a define instead of standart numeric function to know the max of size_t

git-svn-id: svn+ssh://scm.gforge.inria.fr/svn/scalfmm/scalfmm/trunk@192 2616d619-271b-44dc-8df4-d4a8f33a7222
parent 6c6e7531
......@@ -5,10 +5,10 @@
// To get memcpy
#include <cstring>
#include <limits>
#include <climits>
namespace FMemUtils {
static const FSize MaxSize_t = std::numeric_limits<std::size_t>::max();
static const FSize MaxSize_t = UINT_MAX; //std::numeric_limits<std::size_t>::max();
static void* memcpy(void* const dest, const void* const source, const FSize nbBytes){
if( nbBytes < MaxSize_t){
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment