From 41277aa0bdb1ce7f611881ac7458b99ce0ff3ebc Mon Sep 17 00:00:00 2001 From: Giovanni Bussi Date: Fri, 26 Aug 2022 15:21:13 +0200 Subject: [PATCH] another small portability fix see: https://github.com/plumed/plumed2/commit/0fee81f1062a47b767d5fc2aaddb1a4024e71e8c#commitcomment-82273698 cc: @tonigi --- src/tools/OpenMP.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/tools/OpenMP.h b/src/tools/OpenMP.h index 7c7f7dcc28..7715ac47ff 100644 --- a/src/tools/OpenMP.h +++ b/src/tools/OpenMP.h @@ -54,7 +54,7 @@ class OpenMP { template unsigned OpenMP::getGoodNumThreads(const T*x,unsigned n) { - unsigned long p=(unsigned long) x; + unsigned long long p=(unsigned long long) x; (void) p; // this is not to have warnings. notice that the pointer location is not used actually. // a factor two is necessary since there is no guarantee that x is aligned // to cache line boundary