1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-06 01:57:40 +00:00
freebsd-ports/net/nam/files/patch-netmodel.cc
2007-08-02 13:00:15 +00:00

21 lines
606 B
C++

--- netmodel.cc.orig 2007-08-02 14:44:09.000000000 +0200
+++ netmodel.cc 2007-08-02 14:47:11.000000000 +0200
@@ -308,7 +308,7 @@
Tcl_HashEntry *he = Tcl_FindHashEntry(addrHash_, (const char *)addr);
if (he == NULL)
return -1;
- return (int)Tcl_GetHashValue(he);
+ return (intptr_t)Tcl_GetHashValue(he);
}
//----------------------------------------------------------------------
@@ -2761,7 +2761,7 @@
Tcl_HashEntry *he = Tcl_FindHashEntry(objnameHash_, n);
if (he == NULL)
return -1;
- return (int)Tcl_GetHashValue(he);
+ return (intptr_t)Tcl_GetHashValue(he);
#undef STATIC_NAMELEN
}