[Groonga-commit] groonga/groonga at 2c8e87c [master] grn_text_itoh: fix signature

Back to archive index
Kouhei Sutou null+****@clear*****
Fri Feb 1 12:46:31 JST 2019


Kouhei Sutou	2019-02-01 12:46:31 +0900 (Fri, 01 Feb 2019)

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

  Message:
    grn_text_itoh: fix signature
    
    "i" must be unsigned because grn_itoh() uses unsigned.

  Modified files:
    include/groonga/groonga.h
    lib/str.c

  Modified: include/groonga/groonga.h (+1 -1)
===================================================================
--- include/groonga/groonga.h    2019-02-01 12:20:12 +0900 (bb6af7004)
+++ include/groonga/groonga.h    2019-02-01 12:46:31 +0900 (d7e724343)
@@ -1246,7 +1246,7 @@ GRN_API grn_rc grn_text_itoa(grn_ctx *ctx, grn_obj *bulk, int i);
 GRN_API grn_rc grn_text_itoa_padded(grn_ctx *ctx, grn_obj *bulk, int i, char ch, unsigned int len);
 GRN_API grn_rc grn_text_lltoa(grn_ctx *ctx, grn_obj *bulk, long long int i);
 GRN_API grn_rc grn_text_ftoa(grn_ctx *ctx, grn_obj *bulk, double d);
-GRN_API grn_rc grn_text_itoh(grn_ctx *ctx, grn_obj *bulk, int i, unsigned int len);
+GRN_API grn_rc grn_text_itoh(grn_ctx *ctx, grn_obj *bulk, unsigned int i, unsigned int len);
 GRN_API grn_rc grn_text_itob(grn_ctx *ctx, grn_obj *bulk, grn_id id);
 GRN_API grn_rc grn_text_lltob32h(grn_ctx *ctx, grn_obj *bulk, long long int i);
 GRN_API grn_rc grn_text_benc(grn_ctx *ctx, grn_obj *bulk, unsigned int v);

  Modified: lib/str.c (+2 -2)
===================================================================
--- lib/str.c    2019-02-01 12:20:12 +0900 (a0081ba79)
+++ lib/str.c    2019-02-01 12:46:31 +0900 (68afe0d10)
@@ -1,7 +1,7 @@
 /* -*- c-basic-offset: 2 -*- */
 /*
   Copyright(C) 2009-2017 Brazil
-  Copyright(C) 2018 Kouhei Sutou <kou****@clear*****>
+  Copyright(C) 2018-2019 Kouhei Sutou <kou****@clear*****>
 
   This library is free software; you can redistribute it and/or
   modify it under the terms of the GNU Lesser General Public
@@ -2198,7 +2198,7 @@ grn_text_ftoa(grn_ctx *ctx, grn_obj *buf, double d)
 }
 
 grn_rc
-grn_text_itoh(grn_ctx *ctx, grn_obj *buf, int i, unsigned int len)
+grn_text_itoh(grn_ctx *ctx, grn_obj *buf, unsigned int i, unsigned int len)
 {
   grn_rc rc = GRN_SUCCESS;
   if (GRN_BULK_REST(buf) < len) {
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.osdn.me/mailman/archives/groonga-commit/attachments/20190201/27906256/attachment.html>


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