Permalink
Browse files

Fix warning shift-negative-value

  • Loading branch information...
ksss committed Jul 1, 2016
1 parent 3c406d5 commit e3bc81e75ea5b9e5dcdeaa3cb2d451c0274eb24f
Showing with 1 addition and 1 deletion.
  1. +1 −1 mrbgems/mruby-sprintf/src/sprintf.c
@@ -17,7 +17,7 @@
#define BIT_DIGITS(N) (((N)*146)/485 + 1) /* log2(10) =~ 146/485 */
#define BITSPERDIG MRB_INT_BIT
#define EXTENDSIGN(n, l) (((~0 << (n)) >> (((n)*(l)) % BITSPERDIG)) & ~(~0 << (n)))
#define EXTENDSIGN(n, l) (((~0U << (n)) >> (((n)*(l)) % BITSPERDIG)) & ~(~0U << (n)))
mrb_value mrb_str_format(mrb_state *, int, const mrb_value *, mrb_value);
static void fmt_setup(char*,size_t,int,int,mrb_int,mrb_int);

0 comments on commit e3bc81e

Please sign in to comment.