blob: da8cfc2c63231cb91727141be1c5881a154ae32a (
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.2 2012/11/17 22:08:26 markd Exp $
--- work.i386/ivtools-1.2/src/Attribute/attrvalue.c.orig 2009-08-26 17:51:51.000000000 +0000
+++ work.i386/ivtools-1.2/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:
|