From 09fc7773660e3f558e691060109d5f7fa1642e51 Mon Sep 17 00:00:00 2001 From: brodsom Date: Mon, 15 Sep 2003 19:26:41 +0000 Subject: [PATCH] Fix signed/unsigned warning --- src/jrd/gds.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/jrd/gds.cpp b/src/jrd/gds.cpp index 025fed51dc..903684d3d3 100644 --- a/src/jrd/gds.cpp +++ b/src/jrd/gds.cpp @@ -1149,7 +1149,7 @@ void API_ROUTINE gds__trace(const TEXT * text) DWORD bytesWritten; SetFilePointer(trace_file_handle, 0, NULL, FILE_END); WriteFile(trace_file_handle, buffer, p-buffer, &bytesWritten, NULL); - if (bytesWritten != p-buffer) { + if (bytesWritten != (DWORD) (p - buffer) ) { // Handle the case when file was deleted by another process on Win9x // On WinNT we are not going to notice that fact :( CloseHandle(trace_file_handle);