[Groonga-mysql-commit] mroonga/mroonga [fix-for-visual-studio] add missing cast for "%.*s".

Back to archive index

Kouhei Sutou null+****@clear*****
Thu Oct 4 10:26:07 JST 2012


Kouhei Sutou	2011-06-22 18:37:35 +0900 (Wed, 22 Jun 2011)

  New Revision: 99342653e38f8eb1e22362067c7f49573ec651b6
  https://github.com/mroonga/mroonga/commit/99342653e38f8eb1e22362067c7f49573ec651b6

  Log:
    add missing cast for "%.*s".

  Modified files:
    ha_mroonga.cc

  Modified: ha_mroonga.cc (+2 -2)
===================================================================
--- ha_mroonga.cc    2011-06-22 17:02:46 +0900 (bd5c644)
+++ ha_mroonga.cc    2011-06-22 18:37:35 +0900 (ba202d6)
@@ -2616,7 +2616,7 @@ int ha_mroonga::wrapper_write_row_index(uchar *buf)
     char error_message[MRN_MESSAGE_BUFFER_SIZE];
     snprintf(error_message, MRN_MESSAGE_BUFFER_SIZE,
              "failed to add a new record into groonga: key=<%.*s>",
-             GRN_TEXT_LEN(&key), GRN_TEXT_VALUE(&key));
+             (int)GRN_TEXT_LEN(&key), GRN_TEXT_VALUE(&key));
     error = ER_ERROR_ON_WRITE;
     my_message(error, error_message, MYF(0));
   }
@@ -2839,7 +2839,7 @@ int ha_mroonga::wrapper_get_record_id(uchar *data, grn_id *record_id,
     char error_message[MRN_MESSAGE_BUFFER_SIZE];
     snprintf(error_message, MRN_MESSAGE_BUFFER_SIZE,
              "%s: key=<%.*s>",
-             context, GRN_TEXT_LEN(&key), GRN_TEXT_VALUE(&key));
+             context, (int)GRN_TEXT_LEN(&key), GRN_TEXT_VALUE(&key));
     error = ER_ERROR_ON_WRITE;
     my_message(error, error_message, MYF(0));
   }
-------------- next part --------------
HTML����������������������������...
다운로드 



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