From a7bfaede910c335aecaa4fbcdae6101bcd10f6b7 Mon Sep 17 00:00:00 2001 From: Marco Costalba Date: Sat, 22 May 2010 12:45:05 +0100 Subject: [PATCH] Fix a warning on array of size 0 under Windows And better document new reality. No functional change. Signed-off-by: Marco Costalba --- src/tt.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/tt.h b/src/tt.h index c8f7d548..5b83399b 100644 --- a/src/tt.h +++ b/src/tt.h @@ -83,12 +83,12 @@ private: const int ClusterSize = 4; /// Each group of ClusterSize number of TTEntry form a TTCluster -/// that is indexed by a single position key. Cluster is padded -/// to a cache line size so to guarantee always aligned accesses. +/// that is indexed by a single position key. TTCluster size must +// be not bigger then a cache line size, in case it is less then +/// it should be padded to guarantee always aligned accesses. struct TTCluster { TTEntry data[ClusterSize]; - char cache_line_padding[64 - sizeof(TTEntry[ClusterSize])]; }; -- 2.39.2