activemq-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From tab...@apache.org
Subject svn commit: r900502 - /activemq/activemq-cpp/trunk/activemq-cpp/src/examples/main.cpp
Date Mon, 18 Jan 2010 18:37:29 GMT
Author: tabish
Date: Mon Jan 18 18:37:29 2010
New Revision: 900502

URL: http://svn.apache.org/viewvc?rev=900502&view=rev
Log:
Fix warning on Windows build

Modified:
    activemq/activemq-cpp/trunk/activemq-cpp/src/examples/main.cpp

Modified: activemq/activemq-cpp/trunk/activemq-cpp/src/examples/main.cpp
URL: http://svn.apache.org/viewvc/activemq/activemq-cpp/trunk/activemq-cpp/src/examples/main.cpp?rev=900502&r1=900501&r2=900502&view=diff
==============================================================================
--- activemq/activemq-cpp/trunk/activemq-cpp/src/examples/main.cpp (original)
+++ activemq/activemq-cpp/trunk/activemq-cpp/src/examples/main.cpp Mon Jan 18 18:37:29 2010
@@ -22,6 +22,7 @@
 #include <decaf/lang/Runnable.h>
 #include <decaf/util/concurrent/CountDownLatch.h>
 #include <decaf/lang/Integer.h>
+#include <decaf/lang/Long.h>
 #include <decaf/lang/System.h>
 #include <activemq/core/ActiveMQConnectionFactory.h>
 #include <activemq/util/Config.h>
@@ -110,7 +111,7 @@
             producer->setDeliveryMode( DeliveryMode::NON_PERSISTENT );
 
             // Create the Thread Id String
-            string threadIdStr = Integer::toString( Thread::getId() );
+            string threadIdStr = Long::toString( Thread::getId() );
 
             // Create a messages
             string text = (string)"Hello world! from thread " + threadIdStr;



Mime
View raw message