diff --git a/src/remote/interface.cpp b/src/remote/interface.cpp index fba6290c1a..5519511e83 100644 --- a/src/remote/interface.cpp +++ b/src/remote/interface.cpp @@ -1023,7 +1023,7 @@ STATUS GDS_DATABASE_INFO(STATUS* user_status, try { - if (buffer_length > sizeof(temp)) { + if (buffer_length > (SLONG) sizeof(temp)) { temp_buffer = ALLR_alloc((SLONG) buffer_length); } else { temp_buffer = temp; @@ -2093,7 +2093,7 @@ STATUS GDS_DSQL_FREE(STATUS * user_status, RSR * stmt_handle, USHORT option) return error(user_status); } - statement->rsr_handle = (FRBRD *) packet->p_resp.p_resp_object; + statement->rsr_handle = (FRBRD *)(ULONG) packet->p_resp.p_resp_object; if (packet->p_resp.p_resp_object == 0xFFFF) { release_sql_request(statement); *stmt_handle = NULL; diff --git a/src/remote/parser.cpp b/src/remote/parser.cpp index 71c5525f54..6fb57ed0ca 100644 --- a/src/remote/parser.cpp +++ b/src/remote/parser.cpp @@ -21,7 +21,7 @@ * Contributor(s): ______________________________________. */ /* -$Id: parser.cpp,v 1.7 2003-03-04 03:42:23 brodsom Exp $ +$Id: parser.cpp,v 1.8 2003-04-08 01:06:46 brodsom Exp $ */ #include "firebird.h" @@ -228,7 +228,7 @@ REM_MSG DLL_EXPORT PARSE_messages(UCHAR * blr, USHORT blr_length) net_length += (desc->dsc_length + 3) & ~3; if (align > 1) offset = FB_ALIGN(offset, align); - desc->dsc_address = (UCHAR *) offset; + desc->dsc_address = (UCHAR *)(ULONG) offset; offset += desc->dsc_length; } format->fmt_length = offset; diff --git a/src/remote/server.cpp b/src/remote/server.cpp index 680717c049..2a7c6b0a8b 100644 --- a/src/remote/server.cpp +++ b/src/remote/server.cpp @@ -440,7 +440,7 @@ void SRVR_multi_thread( PORT main_port, USHORT flags) extra_threads = threads_waiting - pending_requests; if (extra_threads < 0) { gds__thread_start( reinterpret_cast(thread), - (void*)flags, + (void*)(ULONG) flags, THREAD_medium, THREAD_ast, 0); diff --git a/src/remote/xnet.cpp b/src/remote/xnet.cpp index 0c9912e5a7..b490fa5323 100644 --- a/src/remote/xnet.cpp +++ b/src/remote/xnet.cpp @@ -815,7 +815,7 @@ USHORT XNET_init(HWND hwnd, return (USHORT) 1; } - return (USHORT) xpm; + return (USHORT)(ULONG) xpm; }