Skip to content

Commit 7758858

Browse files
committed
compilation fixes
1 parent 940dc83 commit 7758858

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

ext/ruby_debug/ruby_debug.c

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
#include <insns_info.inc>
1010
#include "ruby_debug.h"
1111

12-
#define DEBUG_VERSION "0.11.30.pre7"
12+
#define DEBUG_VERSION "0.11.30.pre8"
1313

1414
#define FRAME_N(n) (&debug_context->frames[debug_context->stack_size-(n)-1])
1515
#define GET_FRAME (FRAME_N(check_frame_number(debug_context, frame)))
@@ -516,6 +516,9 @@ save_call_frame(rb_event_flag_t _event, debug_context_t *debug_context, VALUE se
516516
#define isdirsep(x) ((x) == '/')
517517
#endif
518518

519+
int
520+
filename_cmp_impl(VALUE source, char *file);
521+
519522
int
520523
filename_cmp(VALUE source, char *file) {
521524
if (!RTEST(resolve_symlinks)) {
@@ -527,7 +530,7 @@ filename_cmp(VALUE source, char *file) {
527530
char path[PATH_MAX + 1];
528531
path[PATH_MAX] = 0;
529532

530-
if (realpath(source, path) != NULL)
533+
if (realpath(RSTRING_PTR(source), path) != NULL)
531534
return filename_cmp_impl(source, path);
532535
else
533536
return filename_cmp_impl(source, file);

0 commit comments

Comments
 (0)