freebsd-ports/lang/mosh/files/patch-HashTableProceduures.cpp
Dmitry Marakasov 20dba0024d - Update to version 0.0.6
PR:		126958
Submitetd by:	Katsuji ISHIKAWA <katsuji dot ishikawa at gmail dot com> (maintainer)
2008-09-07 17:48:25 +00:00

20 lines
519 B
C++

--- HashTableProceduures.cpp.orig 2008-08-16 14:52:38.000000000 +0400
+++ HashTableProceduures.cpp 2008-08-31 16:12:15.000000000 +0400
@@ -32,6 +32,8 @@
#include "HashTableProceduures.h"
#include "ProcedureMacro.h"
+#include <stdint.h>
+
using namespace scheme;
extern scheme::VM* theVM;
@@ -81,7 +83,7 @@
int scheme::symbolHash(Symbol* symbol)
{
// we can use pointer as hash, because symbol is interned.
- return reinterpret_cast<int>(symbol);
+ return reinterpret_cast<intptr_t>(symbol);
}