Skip to content

Commit c82bde3

Browse files
committed
Fix Perl_assert() definition
Source code line numbers now have a typedef and format so that they work on a variety of platforms.
1 parent c07f83a commit c82bde3

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

perl.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5101,8 +5101,8 @@ Gid_t getegid (void);
51015101
((what) \
51025102
? ((void) 0) \
51035103
: Perl_croak_nocontext("Assertion %s failed:" \
5104-
" file \"" __FILE__ "\", line %d", \
5105-
STRINGIFY(what), __LINE__))
5104+
" file \"" __FILE__ "\", line %" LINE_Tf, \
5105+
STRINGIFY(what), (line_t) __LINE__))
51065106
#else
51075107
# define Perl_assert(what) ((void) 0)
51085108
#endif

0 commit comments

Comments
 (0)