Commits

Lars Kanis committed b1d3a14

Avoid warning about DWORD to int mapping in rb_raise() format string.

Comments (0)

Files changed (1)

ext/pg_connection.c

 		}
 		return rb_pgresult;
 	}
-	
+
 	/* Otherwise, just call #exec_params instead for backward-compatibility */
 	else {
 		return pgconn_exec_params( argc, argv, self );
 			/* The event we were waiting for. */
 		} else if ( wait_ret == WAIT_FAILED ) {
 			WSACloseEvent( hEvent );
-			rb_raise( rb_ePGerror, "Wait on socket error (WaitForMultipleObjects): %d", GetLastError() );
+			rb_raise( rb_ePGerror, "Wait on socket error (WaitForMultipleObjects): %lu", GetLastError() );
 		} else {
 			WSACloseEvent( hEvent );
 			rb_raise( rb_ePGerror, "Wait on socket abandoned (WaitForMultipleObjects)" );