summaryrefslogtreecommitdiffstats
path: root/parse.y
diff options
context:
space:
mode:
authormichal <michal@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2002-08-21 15:47:54 +0000
committermichal <michal@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2002-08-21 15:47:54 +0000
commitfa79abb533cc03018a50945bc1d88b2e1b90248f (patch)
tree3b51176716a877c59eebbe6e82533d2cae3d7bc5 /parse.y
parent2ab0494d233b2ee5f7eed92b7dfd0486ab36396d (diff)
downloadruby-fa79abb533cc03018a50945bc1d88b2e1b90248f.tar.gz
ruby-fa79abb533cc03018a50945bc1d88b2e1b90248f.tar.xz
ruby-fa79abb533cc03018a50945bc1d88b2e1b90248f.zip
*.c: Int vs Long cleanup
git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@2734 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'parse.y')
-rw-r--r--parse.y4
1 files changed, 2 insertions, 2 deletions
diff --git a/parse.y b/parse.y
index 42d091ac1..0ba14a1c7 100644
--- a/parse.y
+++ b/parse.y
@@ -954,7 +954,7 @@ arg : lhs '=' arg
if ($2 && nd_type($2) == NODE_LIT && FIXNUM_P($2->nd_lit)) {
long i = FIX2LONG($2->nd_lit);
- $2->nd_lit = INT2NUM(-i);
+ $2->nd_lit = LONG2NUM(-i);
$$ = $2;
}
else {
@@ -3020,7 +3020,7 @@ here_document(here)
{
int c, func, indent = 0;
char *eos;
- int len;
+ long len;
VALUE str = 0, line;
eos = RSTRING(here->nd_lit)->ptr;