File: implicit-int.patch

package info (click to toggle)
imaptool 0.9-24
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 352 kB
  • sloc: ansic: 3,944; makefile: 88
file content (28 lines) | stat: -rw-r--r-- 676 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
From b7b1f9ecfe33409c1dc8fafc6bbdb794b2981523 Mon Sep 17 00:00:00 2001
From: Colin Watson <cjwatson@debian.org>
Date: Wed, 3 Jul 2024 15:00:38 +0100
Subject: Don't rely on implicit int types

These are errors in GCC 14.

Bug-Debian: https://bugs.debian.org/1075089
Last-Update: 2024-07-03

Patch-Name: implicit-int.patch
---
 gifalloc.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/gifalloc.c b/gifalloc.c
index bd28fff..2fd3de0 100644
--- a/gifalloc.c
+++ b/gifalloc.c
@@ -23,7 +23,7 @@
 int BitSize(int n)
 /* return smallest bitfield size n will fit in */
 {
-    register	i;
+    register int	i;
 
     for (i = 1; i <= 8; i++)
 	if ((1 << i) >= n)