From dff8113c399acf10ffc677a64cda68ffde2b9253 Mon Sep 17 00:00:00 2001 From: ivmai Date: Mon, 23 May 2011 13:42:56 +0000 Subject: [PATCH] 2011-05-23 Ivan Maidanski * include/private/gc_priv.h (GC_ASSERT): Use "%d" (instead of %ld) for line number printing. --- ChangeLog | 5 +++++ include/private/gc_priv.h | 4 ++-- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/ChangeLog b/ChangeLog index 6035f983..6ac4b618 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2011-05-23 Ivan Maidanski + + * include/private/gc_priv.h (GC_ASSERT): Use "%d" (instead of %ld) + for line number printing. + 2011-05-23 Ivan Maidanski * os_dep.c (GC_read_dirty): Add debug logging if DEBUG_DIRTY_BITS diff --git a/include/private/gc_priv.h b/include/private/gc_priv.h index 71ef9ff5..8ff8c0fc 100644 --- a/include/private/gc_priv.h +++ b/include/private/gc_priv.h @@ -2020,8 +2020,8 @@ GC_EXTERN signed_word GC_bytes_found; #ifdef GC_ASSERTIONS # define GC_ASSERT(expr) \ if (!(expr)) { \ - GC_err_printf("Assertion failure: %s:%ld\n", \ - __FILE__, (unsigned long)__LINE__); \ + GC_err_printf("Assertion failure: %s:%d\n", \ + __FILE__, __LINE__); \ ABORT("assertion failure"); \ } #else -- 2.40.0