[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Gnash-commit] [SCM] Gnash branch, master, updated. release_0_8_9_final-
From: |
Rob Savoye |
Subject: |
[Gnash-commit] [SCM] Gnash branch, master, updated. release_0_8_9_final-1453-g2f7a683 |
Date: |
Mon, 26 Mar 2012 20:30:15 +0000 |
This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "Gnash".
The branch, master has been updated
via 2f7a683cc61c8911d12828041c81b2fa1704036d (commit)
via 0652068222b1cabf3044489c65e9dded445e5552 (commit)
from f8d900660b94ab25039c06841549ffefabce06ba (commit)
Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.
- Log -----------------------------------------------------------------
http://git.savannah.gnu.org/cgit//commit/?id=2f7a683cc61c8911d12828041c81b2fa1704036d
commit 2f7a683cc61c8911d12828041c81b2fa1704036d
Author: Rob Savoye <address@hidden>
Date: Mon Mar 26 10:32:31 2012 -0600
add const to cast to drop compiler warning.
diff --git a/libcore/asobj/NetConnection_as.cpp
b/libcore/asobj/NetConnection_as.cpp
index 6cf9607..3d56a69 100644
--- a/libcore/asobj/NetConnection_as.cpp
+++ b/libcore/asobj/NetConnection_as.cpp
@@ -882,7 +882,7 @@ handleAMFInvoke(amf::Reader& rd, const boost::uint8_t*& b,
if (b + namelength > end) {
throw amf::AMFException("Invoke buffer too short");
}
- std::string headerName((char*)b, namelength);
+ std::string headerName((const char*)b, namelength);
#ifdef GNASH_DEBUG_REMOTING
log_debug("Invoke name %s", headerName);
http://git.savannah.gnu.org/cgit//commit/?id=0652068222b1cabf3044489c65e9dded445e5552
commit 0652068222b1cabf3044489c65e9dded445e5552
Author: Rob Savoye <address@hidden>
Date: Mon Mar 26 09:20:16 2012 -0600
use time_t instead of size_t for time. This eliminates the compiler
narrowing warning.
diff --git a/libbase/GnashSleep.h b/libbase/GnashSleep.h
index ab4b372..46effce 100644
--- a/libbase/GnashSleep.h
+++ b/libbase/GnashSleep.h
@@ -32,12 +32,12 @@ namespace gnash {
/// Sleep compatibly for the specified number of microseconds
//
/// @param useconds microseconds to sleep.
-inline void gnashSleep(size_t useconds)
+inline void gnashSleep(time_t useconds)
{
#if defined(_WIN32) || defined(WIN32)
Sleep(useconds / 1000);
#else
- const size_t m = 1000000;
+ const time_t m = 1000000;
const struct timespec t = { useconds / m, (useconds % m) * 1000 };
::nanosleep(&t, 0);
#endif
-----------------------------------------------------------------------
Summary of changes:
libbase/GnashSleep.h | 4 ++--
libcore/asobj/NetConnection_as.cpp | 2 +-
2 files changed, 3 insertions(+), 3 deletions(-)
hooks/post-receive
--
Gnash
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Gnash-commit] [SCM] Gnash branch, master, updated. release_0_8_9_final-1453-g2f7a683,
Rob Savoye <=