summaryrefslogtreecommitdiff
path: root/devel/nqc/patches/patch-ab
blob: f0119dc608ec61f3a0a401c9117464a0cb0b8f23 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
$NetBSD: patch-ab,v 1.1 2009/02/17 19:13:46 joerg Exp $

--- compiler/Error.h.orig	2009-02-17 20:01:36.000000000 +0100
+++ compiler/Error.h
@@ -89,7 +89,7 @@ public:
 	};
 	
 			Error(ErrorCode code, int data=0) : fCode(code), fData(data) {}
-			Error(ErrorCode code, const char *s) : fCode(code), fData((int)s) {}
+			Error(ErrorCode code, const char *s) : fCode(code), fData((size_t)s) {}
 
 	// raising errors
 	void	Raise(const LexLocation *loc) const;	// raise error at specified location
@@ -104,7 +104,7 @@ public:
 	
 private:
 	ErrorCode	fCode;
-	int			fData;
+	size_t			fData;
 };