summaryrefslogtreecommitdiff
path: root/debug.c
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2009-09-14 07:39:16 (GMT)
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2009-09-14 07:39:16 (GMT)
commit4f041dafbef3cbc3c5891cb142b00901f90b827b (patch)
tree16510a1d146c7045fa024148d59f46237a341157 /debug.c
parent3ab03a234df4964ac02a2b9e462b6cb18b423865 (diff)
* debug.c, parse.y: fixed types.
* node.h (nd_line): limit to int. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@24924 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'debug.c')
-rw-r--r--debug.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/debug.c b/debug.c
index b3eafa1..7832910 100644
--- a/debug.c
+++ b/debug.c
@@ -77,9 +77,9 @@ ruby_debug_print_indent(int level, int debug_level, int indent_level)
if (level < debug_level) {
fprintf(stderr, "%*s", indent_level, "");
fflush(stderr);
- return Qtrue;
+ return TRUE;
}
- return Qfalse;
+ return FALSE;
}
void
@@ -124,7 +124,7 @@ NODE *
ruby_debug_print_node(int level, int debug_level, const char *header, const NODE *node)
{
if (level < debug_level) {
- fprintf(stderr, "DBG> %s: %s (%lu)\n", header,
+ fprintf(stderr, "DBG> %s: %s (%u)\n", header,
ruby_node_name(nd_type(node)), nd_line(node));
}
return (NODE *)node;