[glibmm] Fix a build error in MemoryInputStream



commit a49cdce4e3c91c840a1481913f2bc8be264af122
Author: Jonathon Jongsma <jonathon quotidian org>
Date:   Sun Jul 26 23:22:31 2009 -0500

    Fix a build error in MemoryInputStream

 ChangeLog                     |    6 ++++++
 gio/src/memoryinputstream.ccg |    4 ++--
 2 files changed, 8 insertions(+), 2 deletions(-)
---
diff --git a/ChangeLog b/ChangeLog
index 6af7689..7ec7e05 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,11 @@
 2009-07-26  Jonathon Jongsma  <jonathon quotidian org>
 
+	* gio/src/memoryinputstream.ccg: fix a build error with explicit
+	  casts.  I had made this change before, but apparently i forgot to
+	  commit it.
+
+2009-07-26  Jonathon Jongsma  <jonathon quotidian org>
+
 	* gio/src/memoryinputstream.ccg:
 	* gio/src/memoryinputstream.hg: fix MemoryInputStream::add_data() so
 	  that it copies the memory internally.  This function was basically
diff --git a/gio/src/memoryinputstream.ccg b/gio/src/memoryinputstream.ccg
index 4c3c276..00d8bf1 100644
--- a/gio/src/memoryinputstream.ccg
+++ b/gio/src/memoryinputstream.ccg
@@ -35,9 +35,9 @@ void MemoryInputStream::add_data(const void* data, gssize len)
 
   // copy the data so that the caller doesn't need to keep the data alive
   if (len > 0)
-    data_copy = g_strdup (data);
+    data_copy = g_strdup (static_cast<const gchar*>(data));
   else
-    data_copy = g_strndup (data, len);
+    data_copy = g_strndup (static_cast<const gchar*>(data), len);
 
   g_memory_input_stream_add_data(gobj(), data_copy, len, g_free);
 }



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]