Permalink
Browse files

Fixed typo from ctypes mapper.

  • Loading branch information...
1 parent 8753b77 commit 7862f99ceb17216b9a36f001f728bb5be3fbf099 Markus Grönholm committed May 9, 2012
Showing with 2 additions and 2 deletions.
  1. +1 −1 Reldb.py
  2. +1 −1 libreldb.cpp
View
@@ -123,7 +123,7 @@ def __init__( self, storage = DummyStorage() ):
self.lib = ctypes.cdll.LoadLibrary( "./libreldb.so.1" )
- self.lib.create_db.retype = ctypes.c_void_p
+ self.lib.create_db.restype = ctypes.c_void_p
self.lib.destroy_db.argtypes = [ctypes.c_void_p]
View
@@ -137,7 +137,7 @@ extern "C" {
} key_vector_t;
void* create_db(){
- return (void*)(new Reldb() );
+ return (void*)( new Reldb() );
}
void destroy_db(void *ptr){

0 comments on commit 7862f99

Please sign in to comment.