You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@couchdb.apache.org by fd...@apache.org on 2011/08/15 03:09:44 UTC
svn commit: r1157693 -
/couchdb/trunk/src/couchdb/priv/icu_driver/couch_icu_driver.c
Author: fdmanana
Date: Mon Aug 15 01:09:44 2011
New Revision: 1157693
URL: http://svn.apache.org/viewvc?rev=1157693&view=rev
Log:
Fix C pointer cast to the right type
This was making init:restart() crash the Erlang VM on a
Mac OS X Lion 64 bits machine.
References:
http://www.erlang.org/doc/man/erl_driver.html#driver_free
http://erlang.org/pipermail/erlang-bugs/2011-August/002549.html
Modified:
couchdb/trunk/src/couchdb/priv/icu_driver/couch_icu_driver.c
Modified: couchdb/trunk/src/couchdb/priv/icu_driver/couch_icu_driver.c
URL: http://svn.apache.org/viewvc/couchdb/trunk/src/couchdb/priv/icu_driver/couch_icu_driver.c?rev=1157693&r1=1157692&r2=1157693&view=diff
==============================================================================
--- couchdb/trunk/src/couchdb/priv/icu_driver/couch_icu_driver.c (original)
+++ couchdb/trunk/src/couchdb/priv/icu_driver/couch_icu_driver.c Mon Aug 15 01:09:44 2011
@@ -45,7 +45,7 @@ static void couch_drv_stop(ErlDrvData da
if (pData->collNoCase) {
ucol_close(pData->collNoCase);
}
- driver_free((char*)pData);
+ driver_free((void*)pData);
}
static ErlDrvData couch_drv_start(ErlDrvPort port, char *buff)