diff src/bufferproxy.c @ 876:e8926413cb3e

Minor compiler warning fixes
author marcus
date Sat, 05 Jan 2008 22:59:30 +0000
parents 31fa129efd0f
children 424ef30fa1ea
line wrap: on
line diff
--- a/src/bufferproxy.c	Sat Jan 05 10:37:56 2008 +0000
+++ b/src/bufferproxy.c	Sat Jan 05 22:59:30 2008 +0000
@@ -237,7 +237,7 @@
         return RAISE (PyExc_IndexError, "bytes to write exceed buffer size");
     }
 
-    memcpy (buffer->buffer + offset, buf, length);
+    memcpy (buffer->buffer + offset, buf, (size_t) length);
 
     Py_RETURN_NONE;
 }   
@@ -330,7 +330,8 @@
 
     /* create the module */
     module = Py_InitModule3 ("bufferproxy", NULL,
-        "TODO");
+        "A generic proxy module that can spend arbitrary objects a buffer " \
+        "interface");
     PyBufferProxy_Type.tp_getattro = PyObject_GenericGetAttr;
     Py_INCREF (&PyBufferProxy_Type);
     PyModule_AddObject (module, "BufferProxy", (PyObject *)&PyBufferProxy_Type);