Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
mpfr
mpfr
Commits
d17bd853
Commit
d17bd853
authored
Jan 12, 2022
by
Vincent Lefevre
Browse files
[tests] Added a comment about the output of pointer values.
parent
29a33c83
Changes
1
Hide whitespace changes
Inline
Side-by-side
tests/memory.c
View file @
d17bd853
...
...
@@ -172,8 +172,12 @@ tests_allocate (size_t size)
/* Note: the double cast (mpfr_uintmax_t) (uintptr_t) below allows to avoid a
pointer-to-int-cast warning with GCC. The AC_TYPE_UINTPTR_T Autoconf macro
must be used to define uintptr_t if not available. */
must be used to define uintptr_t if not available.
Note that pointers may be larger than uintmax_t, even in practice[*];
however, since this is just used in error messages, the loss of
information may be acceptable (but we should probably use %p).
[*] http://www.open-std.org/jtc1/sc22/wg14/www/docs/n2889.htm
*/
void
*
tests_reallocate
(
void
*
ptr
,
size_t
old_size
,
size_t
new_size
)
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment