1. Michael Granger
  2. ruby-pg

Commits

Lars Kanis  committed b1d3a14

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

  • Participants
  • Parent commits 7c313c2
  • Branches default

Comments (0)

Files changed (1)

File ext/pg_connection.c

View file
  • Ignore whitespace
 		}
 		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)" );