[ruby-cvs:69863] kazu:r62708 (trunk): Fix error: implicit conversion loses integer precision

kazu at ruby-lang.org kazu at ruby-lang.org
Sat Mar 10 09:33:11 JST 2018


kazu	2018-03-10 09:33:11 +0900 (Sat, 10 Mar 2018)

  New Revision: 62708

  https://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=62708

  Log:
    Fix error: implicit conversion loses integer precision
    
    http://ci.rvm.jp/results/trunk_clang_50@silicon-docker/627906
    ```
    iseq.h:41:36: error: implicit conversion loses integer precision: 'rb_num_t' (aka 'unsigned long') to 'int' [-Werror,-Wshorten-64-to-32]
        int cnt = iseq->body->variable.flip_count;
            ~~~   ~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~
    ```

  Modified files:
    trunk/compile.c
    trunk/iseq.h
    trunk/vm_core.h


More information about the ruby-cvs mailing list