Commit 7f164f81 authored by Alvarez, Gonzalo's avatar Alvarez, Gonzalo
Browse files

SizeType is uint64_t by default now

parent 84486e35
Loading
Loading
Loading
Loading
+4 −3
Original line number Diff line number Diff line
@@ -33,14 +33,15 @@ Please see full open source license included in file LICENSE.
#include <sstream>
#include <type_traits>
#include <cctype>
#include <cstdint>
#ifdef USE_CUSTOM_ALLOCATOR
#include "MemoryCpu.h"
#endif

#ifdef USE_LONG
typedef size_t SizeType;
#ifndef USE_SHORT
typedef uint64_t SizeType;
#else
typedef unsigned int SizeType;
typedef uint32_t SizeType;
#endif

namespace PsimagLite {
+1 −1
Original line number Diff line number Diff line
@@ -113,7 +113,7 @@ private:
	void chekSizeType()
	{
		if (sizeof(SizeType) == libSizeOfSizeType_) return;
		std::string msg("PsimagLite compiled with -DUSE_LONG but");
		std::string msg("PsimagLite compiled with -DUSE_SHORT but");
		msg += "application without. Or viceversa.\n";
		throw std::runtime_error(msg);
	}