Revision: 48393
http://brlcad.svn.sourceforge.net/brlcad/?rev=48393&view=rev
Author: r_weiss
Date: 2012-01-11 16:08:44 +0000 (Wed, 11 Jan 2012)
Log Message:
-----------
Updated file 'nmg_mk.c' function 'nmg_demote_lu'. Fixed error when debug
enabled when an element is referenced after freed.
Modified Paths:
--------------
brlcad/trunk/src/librt/primitives/nmg/nmg_mk.c
Modified: brlcad/trunk/src/librt/primitives/nmg/nmg_mk.c
===================================================================
--- brlcad/trunk/src/librt/primitives/nmg/nmg_mk.c 2012-01-11 16:08:32 UTC
(rev 48392)
+++ brlcad/trunk/src/librt/primitives/nmg/nmg_mk.c 2012-01-11 16:08:44 UTC
(rev 48393)
@@ -2673,7 +2673,7 @@
nmg_demote_lu(struct loopuse *lu1)
{
struct edgeuse *eu1;
- struct loopuse *lu_tmp;
+ size_t tmp;
struct shell *s;
int ret_val;
@@ -2716,11 +2716,11 @@
if (BU_LIST_NON_EMPTY(&lu1->lumate_p->down_hd))
bu_bomb("nmg_demote_lu: loopuse mates don't have same # of edges\n");
- lu_tmp = lu1;
+ tmp = (size_t)lu1;
ret_val = nmg_klu(lu1);
if (rt_g.NMG_debug & DEBUG_BASIC) {
- bu_log("nmg_demote_lu(lu=0x%p) returns %d\n", lu_tmp, ret_val);
+ bu_log("nmg_demote_lu(lu=%x) returns %d\n", tmp, ret_val);
}
return ret_val;
This was sent by the SourceForge.net collaborative development platform, the
world's largest Open Source development site.
------------------------------------------------------------------------------
Ridiculously easy VDI. With Citrix VDI-in-a-Box, you don't need a complex
infrastructure or vast IT resources to deliver seamless, secure access to
virtual desktops. With this all-in-one solution, easily deploy virtual
desktops for less than the cost of PCs and save 60% on VDI infrastructure
costs. Try it free! http://p.sf.net/sfu/Citrix-VDIinabox
_______________________________________________
BRL-CAD Source Commits mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/brlcad-commits