From 98a09d9bdfbe47bdad60cee1f5f8b4688db36538 Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Mon, 20 May 2024 08:15:12 +0530 Subject: [PATCH] Fix compiler warning --- src/calibre/utils/imageops/quantize.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/calibre/utils/imageops/quantize.cpp b/src/calibre/utils/imageops/quantize.cpp index 3eae6ef72f..c55f80ae27 100644 --- a/src/calibre/utils/imageops/quantize.cpp +++ b/src/calibre/utils/imageops/quantize.cpp @@ -54,7 +54,7 @@ private: T *first_available; public: - Pool(int size) : nodes(size), first_available(nodes.data()) { + Pool(int size) : nodes(size), first_available(nodes.data()) { for (int i = 0; i < size - 1; i++) this->nodes[i].next_available_in_pool = &this->nodes[i+1]; }