summaryrefslogtreecommitdiff
path: root/iseq.h
diff options
context:
space:
mode:
authornaruse <naruse@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2018-03-16 07:59:09 +0000
committernaruse <naruse@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2018-03-16 07:59:09 +0000
commita14a67978715dcfa53a1d052545cc6ee99dda862 (patch)
tree528d5c3dfdcce30f36545adaef2aaa82c7162327 /iseq.h
parentb099c5e6206e0ac591b3e821ed1f37a93b0aebd7 (diff)
Revert "Fix error: implicit conversion loses integer precision"
This reverts commit r62708. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@62774 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'iseq.h')
-rw-r--r--iseq.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/iseq.h b/iseq.h
index 0a0edd9..a39d827 100644
--- a/iseq.h
+++ b/iseq.h
@@ -35,10 +35,10 @@ rb_call_info_kw_arg_bytes(int keyword_len)
#define ISEQ_FLIP_CNT(iseq) (iseq)->body->variable.flip_count
-static inline rb_snum_t
+static inline int
ISEQ_FLIP_CNT_INCREMENT(const rb_iseq_t *iseq)
{
- rb_snum_t cnt = iseq->body->variable.flip_count;
+ int cnt = iseq->body->variable.flip_count;
iseq->body->variable.flip_count += 1;
return cnt;
}