summaryrefslogtreecommitdiff
path: root/emulators/xbraitenberg/files/patch-permstr.hh
blob: 536f9d7db968c98c4126340c6d5b890f8e8fbd73 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
--- permstr.hh.orig
+++ permstr.hh
@@ -4,6 +4,10 @@
 #include <cstddef>
 #include <cstdarg>
 
+class PermString;
+
+PermString permprintf(const char *, ...);
+
 class PermString { struct Doodad; public:
   
     typedef Doodad *Capsule;
@@ -91,7 +95,7 @@
 inline int
 hashcode(PermString s)
 {
-    return (int)(s.cc());
+    return (int)(size_t)(s.cc());
 }
 
 #endif