Mentions légales du service

Skip to content
Snippets Groups Projects
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
No related branches found
No related tags found
No related merge requests found
......@@ -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){
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment