Remove duplicated H5_IS_BUFFER_OVERFLOW macro (#2700)

This commit is contained in:
jhendersonHDF 2023-04-12 14:56:51 -05:00 committed by GitHub
parent e94071fe53
commit d67d709a3a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -2436,11 +2436,6 @@ H5_DLL herr_t H5CX_pop(hbool_t update_dxpl_props);
#define HDcompile_assert(e) do { typedef struct { unsigned int b: (e); } x; } while(0)
*/
/* Check if a read of size bytes starting at ptr would overflow past
* the last valid byte, pointed to by buffer_end .
*/
#define H5_IS_BUFFER_OVERFLOW(ptr, size, buffer_end) (((ptr) + (size)-1) > (buffer_end))
/* Private typedefs */
/* Union for const/non-const pointer for use by functions that manipulate