From c34f716bba4c485f5d78a4ed740b54308ec4c479 Mon Sep 17 00:00:00 2001 From: arved Date: Thu, 2 Aug 2007 13:00:15 +0000 Subject: Fix build on 64bit platforms --- net/nam/files/patch-editview.cc | 20 ++++++++++++++++++++ net/nam/files/patch-group.cc | 11 +++++++++++ net/nam/files/patch-netmodel.cc | 20 ++++++++++++++++++++ 3 files changed, 51 insertions(+) create mode 100644 net/nam/files/patch-editview.cc create mode 100644 net/nam/files/patch-group.cc create mode 100644 net/nam/files/patch-netmodel.cc (limited to 'net') diff --git a/net/nam/files/patch-editview.cc b/net/nam/files/patch-editview.cc new file mode 100644 index 000000000000..5aa0cd81c7fa --- /dev/null +++ b/net/nam/files/patch-editview.cc @@ -0,0 +1,20 @@ +--- editview.cc.orig 2007-08-02 14:52:33.000000000 +0200 ++++ editview.cc 2007-08-02 14:52:53.000000000 +0200 +@@ -66,7 +66,7 @@ + } + char str[256]; + model_ = m; +- sprintf(str, "def%-u", (int)this); ++ sprintf(str, "def%-u", (intptr_t)this); + defTag_ = new Tag(str); + model_->add_tag(defTag_); + editing_stage_ = NONE; +@@ -89,7 +89,7 @@ + } + + model_ = m; +- sprintf(str, "def%-u", (int)this); ++ sprintf(str, "def%-u", (intptr_t)this); + defTag_ = new Tag(name); + model_->add_tag(defTag_); + editing_stage_ = NONE; diff --git a/net/nam/files/patch-group.cc b/net/nam/files/patch-group.cc new file mode 100644 index 000000000000..f41a0133a89e --- /dev/null +++ b/net/nam/files/patch-group.cc @@ -0,0 +1,11 @@ +--- group.cc.orig 2007-08-02 14:51:34.000000000 +0200 ++++ group.cc 2007-08-02 14:51:56.000000000 +0200 +@@ -81,7 +81,7 @@ + for (he = Tcl_FirstHashEntry(nodeHash_, &hs); + he != NULL; + he = Tcl_NextHashEntry(&hs), i++) +- mbrs[i] = (int) Tcl_GetHashValue(he); ++ mbrs[i] = (intptr_t) Tcl_GetHashValue(he); + } + + void Group::draw(View * nv, double now) { diff --git a/net/nam/files/patch-netmodel.cc b/net/nam/files/patch-netmodel.cc new file mode 100644 index 000000000000..af4841967bb9 --- /dev/null +++ b/net/nam/files/patch-netmodel.cc @@ -0,0 +1,20 @@ +--- 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 + } + -- cgit