summaryrefslogtreecommitdiff
path: root/cad/gerbv/patches
diff options
context:
space:
mode:
authorgson <gson@pkgsrc.org>2006-07-13 06:58:37 +0000
committergson <gson@pkgsrc.org>2006-07-13 06:58:37 +0000
commiteafe386beaa9a33885e78fbff769274c26983820 (patch)
tree550490f712d334337cc2f92ac33cde9b63bd6e9d /cad/gerbv/patches
parent69ed23f3be880c4bc7264d670bde7974ae5f882e (diff)
downloadpkgsrc-eafe386beaa9a33885e78fbff769274c26983820.tar.gz
Remove illegal and unnecessary cast on left side of
assignment to make it compile with gcc 4.1.2
Diffstat (limited to 'cad/gerbv/patches')
-rw-r--r--cad/gerbv/patches/patch-aa15
1 files changed, 15 insertions, 0 deletions
diff --git a/cad/gerbv/patches/patch-aa b/cad/gerbv/patches/patch-aa
new file mode 100644
index 00000000000..b3d37db51aa
--- /dev/null
+++ b/cad/gerbv/patches/patch-aa
@@ -0,0 +1,15 @@
+$NetBSD: patch-aa,v 1.5 2006/07/13 06:58:37 gson Exp $
+
+--- src/drill.c.orig 2005-01-09 23:51:57.000000000 +0200
++++ src/drill.c
+@@ -217,8 +217,8 @@ parse_drillfile(gerb_file_t *fd)
+ /* KLUDGE. This function isn't allowed to return anything
+ but inches */
+ if(state->unit == MM) {
+- (double)curr_net->start_x /= 25.4;
+- (double)curr_net->start_y /= 25.4;
++ curr_net->start_x /= 25.4;
++ curr_net->start_y /= 25.4;
+ /* KLUDGE. All images, regardless of input format,
+ are returned in INCH format */
+ curr_net->unit = INCH;