summaryrefslogtreecommitdiff
path: root/devel/nqc/patches/patch-ac
blob: 5d968cbb8d506952b9893e1e046ba900c3ba9de1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
$NetBSD: patch-ac,v 1.1 2009/02/17 19:13:46 joerg Exp $

--- compiler/Error.cpp.orig	2001-04-16 02:56:29.000000000 +0200
+++ compiler/Error.cpp
@@ -129,7 +129,7 @@ bool Error::IsDeprecated() const
 void Error::SPrint(char *str) const
 {
 	if (fCode < 0 || fCode >= (ErrorCode)(sizeof(sErrorText) / sizeof(const char *)))
-		sprintf(str, "internal error #%d", fCode);
+		sprintf(str, "internal error #%d", (int)fCode);
 	else
 		sprintf(str, sErrorText[fCode], fData);
 }