mirror of
				https://github.com/psycopg/psycopg2.git
				synced 2025-10-30 23:37:29 +03:00 
			
		
		
		
	Fixed compiler warnings about Py_ssize_t printf format
This commit is contained in:
		
							parent
							
								
									d0309333b7
								
							
						
					
					
						commit
						c13956dc10
					
				|  | @ -187,8 +187,8 @@ psyco_lobj_seek(lobjectObject *self, PyObject *args) | ||||||
| #else | #else | ||||||
|     if (offset < INT_MIN || offset > INT_MAX) { |     if (offset < INT_MIN || offset > INT_MAX) { | ||||||
|         PyErr_Format(InterfaceError, |         PyErr_Format(InterfaceError, | ||||||
|             "offset out of range (%ld): this psycopg version was not built " |             "offset out of range (" FORMAT_CODE_PY_SSIZE_T "): " | ||||||
|             "with lobject 64 API support", |             "this psycopg version was not built with lobject 64 API support", | ||||||
|             offset); |             offset); | ||||||
|         return NULL; |         return NULL; | ||||||
|     } |     } | ||||||
|  | @ -286,16 +286,16 @@ psyco_lobj_truncate(lobjectObject *self, PyObject *args) | ||||||
| #ifdef HAVE_LO64 | #ifdef HAVE_LO64 | ||||||
|     if (len > INT_MAX && self->conn->server_version < 90300) { |     if (len > INT_MAX && self->conn->server_version < 90300) { | ||||||
|         PyErr_Format(NotSupportedError, |         PyErr_Format(NotSupportedError, | ||||||
|             "len out of range (%ld): server version %d " |             "len out of range (" FORMAT_CODE_PY_SSIZE_T "): " | ||||||
|             "does not support the lobject 64 API", |             "server version %d does not support the lobject 64 API", | ||||||
|             len, self->conn->server_version); |             len, self->conn->server_version); | ||||||
|         return NULL; |         return NULL; | ||||||
|     } |     } | ||||||
| #else | #else | ||||||
|     if (len > INT_MAX) { |     if (len > INT_MAX) { | ||||||
|         PyErr_Format(InterfaceError, |         PyErr_Format(InterfaceError, | ||||||
|             "len out of range (%ld): this psycopg version was not built " |             "len out of range (" FORMAT_CODE_PY_SSIZE_T "): " | ||||||
|             "with lobject 64 API support", |             "this psycopg version was not built with lobject 64 API support", | ||||||
|             len); |             len); | ||||||
|         return NULL; |         return NULL; | ||||||
|     } |     } | ||||||
|  |  | ||||||
		Loading…
	
		Reference in New Issue
	
	Block a user