File: 64bit_fix.patch

package info (click to toggle)
g2clib 1.6.2-2
  • links: PTS, VCS
  • area: main
  • in suites: bullseye
  • size: 696 kB
  • sloc: ansic: 5,536; makefile: 449
file content (35 lines) | stat: -rw-r--r-- 763 bytes parent folder | download
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
29
30
31
32
33
34
35
Author: Alastair McKinstry <mckinstry@debian.org>
Description: Fix for 64-bit definition for int
 Thanks to Giuseppe Bilotta
Bug-Origin: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=823226
Forwarded: no
Last-Updated: 2016-12-11

Index: g2clib-1.6.2/grib2.h
===================================================================
--- g2clib-1.6.2.orig/grib2.h
+++ g2clib-1.6.2/grib2.h
@@ -148,17 +148,16 @@
 */
 #ifndef _grib2_H
 #define _grib2_H
+
 #include<stdio.h>
+#include <stdint.h>
 
 #define G2_VERSION "g2clib-1.6.2"
 
-#ifdef __64BIT__
-typedef int g2int;
-typedef unsigned int g2intu;
-#else
-typedef long g2int;
-typedef unsigned long g2intu;
-#endif
+
+typedef int64_t g2int;
+typedef uint64_t g2intu;
+
 typedef float g2float;
 
 struct gtemplate {