summaryrefslogtreecommitdiff
path: root/plugins/Import/src/dbrw
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/Import/src/dbrw')
-rw-r--r--plugins/Import/src/dbrw/dbsettings.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/plugins/Import/src/dbrw/dbsettings.cpp b/plugins/Import/src/dbrw/dbsettings.cpp
index b794e38875..ba9703b127 100644
--- a/plugins/Import/src/dbrw/dbsettings.cpp
+++ b/plugins/Import/src/dbrw/dbsettings.cpp
@@ -97,7 +97,7 @@ STDMETHODIMP_(BOOL) CDbxSQLite::GetContactSettingWorker(MCONTACT contactID, LPCS
dbv->type = (int)sqlite3_column_int(set_stmts_prep[SQL_SET_STMT_READ], 0);
switch (dbv->type) {
case DBVT_BYTE:
- dbv->bVal = (BYTE)sqlite3_column_int(set_stmts_prep[SQL_SET_STMT_READ], 1);
+ dbv->bVal = (uint8_t)sqlite3_column_int(set_stmts_prep[SQL_SET_STMT_READ], 1);
break;
case DBVT_WORD:
dbv->wVal = (WORD)sqlite3_column_int(set_stmts_prep[SQL_SET_STMT_READ], 1);
@@ -128,7 +128,7 @@ STDMETHODIMP_(BOOL) CDbxSQLite::GetContactSettingWorker(MCONTACT contactID, LPCS
if (len) {
size_t copylen = isStatic ? (len < dbv->cpbVal ? len : dbv->cpbVal) : len;
if (!isStatic)
- dbv->pbVal = (BYTE*)mir_alloc(copylen);
+ dbv->pbVal = (uint8_t*)mir_alloc(copylen);
memcpy(dbv->pbVal, sqlite3_column_blob(set_stmts_prep[SQL_SET_STMT_READ], 1), copylen);
dbv->cpbVal = (WORD)copylen;
}