From 20df2f4b2c0c65a9804b8df03a7ebe747877e2f8 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Niels=20M=C3=B6ller?= <nisse@lysator.liu.se>
Date: Wed, 8 Jun 2011 11:17:18 +0200
Subject: [PATCH] (find_first_one): Declare the lookup table as static const,
 and use unsigned char rather than unsigned..

Rev: nettle/examples/eratosthenes.c:1.12
---
 examples/eratosthenes.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/examples/eratosthenes.c b/examples/eratosthenes.c
index 25759bba..932eebed 100644
--- a/examples/eratosthenes.c
+++ b/examples/eratosthenes.c
@@ -124,7 +124,7 @@ vector_clear_bits (unsigned long *vector, unsigned long step,
 static unsigned
 find_first_one (unsigned long x)
 {  
-  unsigned table[0x101] =
+  static const unsigned char table[0x101] =
     {
      15, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
       0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
-- 
GitLab