[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Gnash-commit] /srv/bzr/gnash/trunk r11306: Don't cast pointers to unsig
From: |
Benjamin Wolsey |
Subject: |
[Gnash-commit] /srv/bzr/gnash/trunk r11306: Don't cast pointers to unsigned int for logging. Besides being unnecessary, |
Date: |
Thu, 23 Jul 2009 06:17:54 -0600 |
User-agent: |
Bazaar (1.13.1) |
------------------------------------------------------------
revno: 11306
committer: Benjamin Wolsey <address@hidden>
branch nick: trunk
timestamp: Thu 2009-07-23 06:17:54 -0600
message:
Don't cast pointers to unsigned int for logging. Besides being unnecessary,
it is the wrong size for many platforms.
modified:
libamf/lcshm.cpp
=== modified file 'libamf/lcshm.cpp'
--- a/libamf/lcshm.cpp 2009-07-22 18:25:26 +0000
+++ b/libamf/lcshm.cpp 2009-07-23 12:17:54 +0000
@@ -413,7 +413,7 @@
boost::uint8_t *header = Listener::getBaseAddress();
boost::uint8_t *ptr_FH = Listener::getBaseAddress();
log_debug("Base address in 'formatHeader' is: 0x%x, 0x%x",
- (unsigned int) header, (unsigned int) ptr_FH);
+ header, ptr_FH);
// This is the initial 16 bytes of the header
memset(ptr_FH, 0, 16 + size + 1);
@@ -484,10 +484,10 @@
_baseaddr = baseAddress;
parseHeader(baseAddress, tooFar);
log_debug("Base address in 'connect' is: 0x%x, 0x%x",
- (unsigned int) Shm::getAddr(), (unsigned int) _baseaddr);
+ Shm::getAddr(), _baseaddr);
// vector<boost::shared_ptr<Element> > ellist = parseBody(ptr);
// log_debug("Base address is: 0x%x, 0x%x",
-// (unsigned int)Listener::getBaseAddress(), (unsigned
int)_baseaddr);
+// Listener::getBaseAddress(), _baseaddr);
addListener(name);
system("ipcs");
@@ -523,7 +523,7 @@
parseHeader(baseAddress, tooFar);
// vector<boost::shared_ptr<Element> > ellist = parseBody(ptr);
// log_debug("Base address is: 0x%x, 0x%x",
-// (unsigned int)Listener::getBaseAddress(), (unsigned
int)_baseaddr);
+// Listener::getBaseAddress(), _baseaddr);
return true;
}
@@ -565,7 +565,7 @@
// cout<<" The send function is called ! "<<endl;
log_debug("Base address in 'send' is: 0x%x, 0x%x",
- (unsigned int)Listener::getBaseAddress(), (unsigned
int)_baseaddr);
+ Listener::getBaseAddress(), _baseaddr);
//The base address
boost::uint8_t *baseptr = Listener::getBaseAddress();
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Gnash-commit] /srv/bzr/gnash/trunk r11306: Don't cast pointers to unsigned int for logging. Besides being unnecessary,,
Benjamin Wolsey <=