summaryrefslogtreecommitdiff
path: root/cad/pcb/patches/patch-ao
blob: 79b8c64f7e953b1a8a473e1af8be7a1c98e00e6b (plain)
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
$NetBSD: patch-ao,v 1.1 2002/05/31 19:56:21 dmcmahill Exp $

--- src/sizedialog.c.orig	Wed May 13 06:29:59 1998
+++ src/sizedialog.c
@@ -87,7 +87,7 @@
 /* ---------------------------------------------------------------------------
  * some local identifiers
  */
-static	int			ReturnCode;			/* returncode of buttons */
+static	long int	ReturnCode;			/* returncode of buttons */
 static	SliderType	Sliders[] = {
 	{ "linewidth", MIN_LINESIZE, MAX_LINESIZE, CHUNK, 0, NULL, NULL },
 	{ "via hole", MIN_PINORVIAHOLE, 0, CHUNK, 0, NULL, NULL },
@@ -180,7 +180,7 @@
  */
 static void CB_CancelOrOK(Widget W, XtPointer ClientData, XtPointer CallData)
 {
-	ReturnCode = (int) ClientData;
+	ReturnCode = (long int) ClientData;
 }
 
 /* ---------------------------------------------------------------------------
@@ -190,7 +190,7 @@
  */
 static void CB_ScrollProc(Widget W, XtPointer ClientData, XtPointer CallData)
 {
-	int				delta = (int) CallData;
+	long int				delta = (long int) CallData;
 	SliderTypePtr	slider = (SliderTypePtr) ClientData;
 
 	UpdateScrollbar(slider,