[Groonga-commit] pgroonga/pgroonga at 50cfecb [master] msgpack 0.5.7 uses "unsigned int" for msgpack_packer_write

Back to archive index

Kouhei Sutou null+****@clear*****
Fri Dec 16 11:52:13 JST 2016


Kouhei Sutou	2016-12-16 11:52:13 +0900 (Fri, 16 Dec 2016)

  New Revision: 50cfecbcc0e9878ea337bad182790587deafd9f6
  https://github.com/pgroonga/pgroonga/commit/50cfecbcc0e9878ea337bad182790587deafd9f6

  Message:
    msgpack 0.5.7 uses "unsigned int" for msgpack_packer_write

  Modified files:
    src/pgrn_wal.c

  Modified: src/pgrn_wal.c (+9 -1)
===================================================================
--- src/pgrn_wal.c    2016-12-16 11:43:08 +0900 (0919cb9)
+++ src/pgrn_wal.c    2016-12-16 11:52:13 +0900 (430b558)
@@ -127,6 +127,14 @@ struct PGrnWALData_
 #	endif
 #endif
 
+#ifdef PGRN_SUPPORT_WAL
+#	if MSGPACK_VERSION_MAJOR == 0
+#		define MSGPACK_PACKER_WRITE_LENGTH_TYPE unsigned int
+#	else
+#		define MSGPACK_PACKER_WRITE_LENGTH_TYPE size_t
+#	endif
+#endif
+
 static void
 msgpack_pack_cstr(msgpack_packer *packer, const char *string)
 {
@@ -305,7 +313,7 @@ PGrnWALPageWriterEnsureCurrent(PGrnWALData *data)
 static int
 PGrnWALPageWriter(void *userData,
 				  const char *buffer,
-				  size_t length)
+				  MSGPACK_PACKER_WRITE_LENGTH_TYPE length)
 {
 	PGrnWALData *data = userData;
 	int written = 0;
-------------- next part --------------
HTML����������������������������...
Download 



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