[Groonga-commit] groonga/groonga at 2df774a [master] Correct output type of writer_write function in case target type is MRB_TT_FIXNUM. (#936)

Back to archive index
Takashi Hashida null+****@clear*****
Mon Apr 15 10:42:17 JST 2019


Takashi Hashida	2019-04-15 10:42:17 +0900 (Mon, 15 Apr 2019)

  Revision: 2df774a00ed5b51f58efed5b484afb43703bf758
  https://github.com/groonga/groonga/commit/2df774a00ed5b51f58efed5b484afb43703bf758

  Message:
    Correct output type of writer_write function in case target type is MRB_TT_FIXNUM. (#936)

  Modified files:
    lib/mrb/mrb_writer.c

  Modified: lib/mrb/mrb_writer.c (+1 -1)
===================================================================
--- lib/mrb/mrb_writer.c    2019-04-12 17:52:26 +0900 (20ebd6ab9)
+++ lib/mrb/mrb_writer.c    2019-04-15 10:42:17 +0900 (56c1df0e9)
@@ -50,7 +50,7 @@ writer_write(mrb_state *mrb, mrb_value self)
     GRN_OUTPUT_BOOL(GRN_TRUE);
     break;
   case MRB_TT_FIXNUM :
-    GRN_OUTPUT_INT32(mrb_fixnum(target));
+    GRN_OUTPUT_INT64(mrb_fixnum(target));
     break;
   case MRB_TT_FLOAT :
     GRN_OUTPUT_FLOAT(mrb_float(target));
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.osdn.me/mailman/archives/groonga-commit/attachments/20190415/8d09bfe1/attachment.html>


More information about the Groonga-commit mailing list
Back to archive index