[Pkg-kde-bugs-fwd] [Bug 101556] kdesdk compile errors on amd64/gcc4

Josef Weidendorfer 101556@bugs.kde.org
21 Mar 2005 21:49:17 -0000


------- You are receiving this mail because: -------
You reported the bug, or are watching the reporter.
You are a voter for the bug, or are watching someone who is.
         
http://bugs.kde.org/show_bug.cgi?id=101556         
josef.weidendorfer gmx de changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |RESOLVED
         Resolution|                            |FIXED



------- Additional Comments From josef.weidendorfer gmx de  2005-03-21 22:49 -------
CVS commit by weidendo: 

We use hexadecimal hash values as identifiers for
nodes in a graph to be layouted by GraphViz. These IDs
are simply the address of the function object.
Fix: Use "long" as ID type for pointers both on 32/64bit platforms. 
Thanks to Debian for the patch.
BUGS:101556


  M +11 -11    callgraphview.cpp   1.21


--- kdesdk/kcachegrind/kcachegrind/callgraphview.cpp  #1.20:1.21
 @ -580,5 +580,5  @ void GraphExporter::writeDot()
     }
     if (f)
-      *stream << QString("  center=F%1;\n").arg((int)f, 0, 16);
+      *stream << QString("  center=F%1;\n").arg((long)f, 0, 16);
     *stream << QString("  overlap=false;\n  splines=true;\n");
   }
 @ -631,5 +631,5  @ void GraphExporter::writeDot()
         abr = abr.left(Configuration::maxSymbolLength()) + "...";
       
-      *stream << QString("  F%1 [").arg((int)f, 0, 16);
+      *stream << QString("  F%1 [").arg((long)f, 0, 16);
       if (_useBox) {
         // make label 3 lines for CallGraphView
 @ -674,7 +674,7  @ void GraphExporter::writeDot()
 
     *stream << QString("  F%1 -> F%2 [weight=%3")
-      .arg((int)e.from(), 0, 16)
-      .arg((int)e.to(), 0, 16)
-      .arg((int)log(log(e.cost)));
+      .arg((long)e.from(), 0, 16)
+      .arg((long)e.to(), 0, 16)
+      .arg((long)log(log(e.cost)));
 
     if (_go->detailLevel() ==1)
 @ -713,8 +713,8  @ void GraphExporter::writeDot()
 
               *stream << QString("  R%1 [shape=point,label=\"\"];\n")
-                  .arg((int)n.function(), 0, 16);
+                  .arg((long)n.function(), 0, 16);
               *stream << QString("  R%1 -> F%2 [label=\"%3\\n%4 x\",weight=%5];\n")
-                  .arg((int)n.function(), 0, 16)
-                  .arg((int)n.function(), 0, 16)
+                  .arg((long)n.function(), 0, 16)
+                  .arg((long)n.function(), 0, 16)
                   .arg(SubCost(costSum).pretty())
                   .arg(SubCost(countSum).pretty())
 @ -736,8 +736,8  @ void GraphExporter::writeDot()
 
               *stream << QString("  S%1 [shape=point,label=\"\"];\n")
-                  .arg((int)n.function(), 0, 16);
+                  .arg((long)n.function(), 0, 16);
               *stream << QString("  F%1 -> S%2 [label=\"%3\\n%4 x\",weight=%5];\n")
-                  .arg((int)n.function(), 0, 16)
-                  .arg((int)n.function(), 0, 16)
+                  .arg((long)n.function(), 0, 16)
+                  .arg((long)n.function(), 0, 16)
                   .arg(SubCost(costSum).pretty())
                   .arg(SubCost(countSum).pretty())