summaryrefslogtreecommitdiff
path: root/protocols/IRCG/src/options.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'protocols/IRCG/src/options.cpp')
-rw-r--r--protocols/IRCG/src/options.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/protocols/IRCG/src/options.cpp b/protocols/IRCG/src/options.cpp
index 9961f0be81..8d0d8961db 100644
--- a/protocols/IRCG/src/options.cpp
+++ b/protocols/IRCG/src/options.cpp
@@ -48,7 +48,7 @@ void CIrcProto::ReadSettings(TDbSetting *sets, int count)
*(uint16_t*)ptr = getWord(p->name, p->defValue);
break;
case DBVT_DWORD:
- *(DWORD*)ptr = getDword(p->name, p->defValue);
+ *(uint32_t*)ptr = getDword(p->name, p->defValue);
break;
case DBVT_ASCIIZ:
if (!getString(p->name, &dbv)) {
@@ -101,7 +101,7 @@ void CIrcProto::WriteSettings(TDbSetting *sets, int count)
switch (p->type) {
case DBVT_BYTE: setByte(p->name, *(uint8_t*)ptr); break;
case DBVT_WORD: setWord(p->name, *(uint16_t*)ptr); break;
- case DBVT_DWORD: setDword(p->name, *(DWORD*)ptr); break;
+ case DBVT_DWORD: setDword(p->name, *(uint32_t*)ptr); break;
case DBVT_ASCIIZ:
if (p->size == -1)