blob: d59f740c6e2a8213422e88a335238e619c246ace (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
|
--- lib/vpwtable/gdbm_del.cc.orig 2002-11-20 15:54:44 UTC
+++ lib/vpwtable/gdbm_del.cc
@@ -23,7 +23,7 @@ bool vpwtable::del(const mystring& name) const
GDBM_FILE db = gdbm_open((char*)filename.c_str(), 0, GDBM_WRITER, 0, 0);
if(!db)
return false;
- datum key = { (char*)name.c_str(), name.length() };
+ datum key = { (char*)name.c_str(), static_cast<int>(name.length()) };
bool result = gdbm_delete(db, key) == 0;
gdbm_close(db);
return result;
|