[Groonga-mysql-commit] mroonga/mroonga [master] Use uint* instead of uint*_t

Back to archive index

null+****@clear***** null+****@clear*****
2012年 5月 20日 (日) 17:05:22 JST


Kouhei Sutou	2012-05-20 17:05:22 +0900 (Sun, 20 May 2012)

  New Revision: 4ca3bcad988d92d81125cd89df2cf59887ed0aea

  Log:
    Use uint* instead of uint*_t

  Modified files:
    ha_mroonga.cpp

  Modified: ha_mroonga.cpp (+6 -6)
===================================================================
--- ha_mroonga.cpp    2012-05-20 17:03:19 +0900 (2f72ad0)
+++ ha_mroonga.cpp    2012-05-20 17:05:22 +0900 (4d9d7e0)
@@ -1134,17 +1134,17 @@ static int mrn_set_geometry(grn_ctx *ctx, grn_obj *buf,
 #ifdef WORDS_BIGENDIAN
 #define mrn_byte_order_host_to_network(buf, key, size)  \
 {                                                       \
-  uint32_t size_ = (uint32_t)(size);                    \
-  uint8_t *buf_ = (uint8_t *)(buf);                     \
-  uint8_t *key_ = (uint8_t *)(key);                     \
+  uint32 size_ = (uint32)(size);                        \
+  uint8 *buf_ = (uint8 *)(buf);                         \
+  uint8 *key_ = (uint8 *)(key);                         \
   while (size_--) { *buf_++ = *key_++; }                \
 }
 #else /* WORDS_BIGENDIAN */
 #define mrn_byte_order_host_to_network(buf, key, size)  \
 {                                                       \
-  uint32_t size_ = (uint32_t)(size);                    \
-  uint8_t *buf_ = (uint8_t *)(buf);                     \
-  uint8_t *key_ = (uint8_t *)(key) + size_;             \
+  uint32 size_ = (uint32)(size);                        \
+  uint8 *buf_ = (uint8 *)(buf);                         \
+  uint8 *key_ = (uint8 *)(key) + size_;                 \
   while (size_--) { *buf_++ = *(--key_); }              \
 }
 #endif /* WORDS_BIGENDIAN */




Groonga-mysql-commit メーリングリストの案内
Back to archive index