summaryrefslogtreecommitdiff
path: root/graphics/ivtools/patches/patch-bd
blob: ff0370560b6f8c17c2beabfbf4a2cbf3fa392929 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
$NetBSD: patch-bd,v 1.3 2012/12/18 18:23:40 markd Exp $

--- src/Attribute/attrvalue.c.orig	2009-08-26 17:51:51.000000000 +0000
+++ src/Attribute/attrvalue.c
@@ -38,6 +38,7 @@
 #include <memory.h>
 #endif
 #include <stdio.h>
+#include <stdint.h>
 #include <string.h>
 #include <cstdio>
 using namespace std;
@@ -393,7 +394,7 @@ boolean AttributeValue::boolean_val() {
     case AttributeValue::StringType:
 	return (boolean) int_val()!=-1;
     case AttributeValue::ObjectType:
-	return (boolean) obj_val();
+	return (boolean) (uintptr_t)obj_val();
     case AttributeValue::StreamType:
 	return stream_mode() != 0;
     default: