Navigation Menu

Skip to content

Commit

Permalink
Use uint* instead of uint*_t
Browse files Browse the repository at this point in the history
  • Loading branch information
kou committed May 20, 2012
1 parent 2bbafd9 commit 4ca3bca
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions ha_mroonga.cpp
Expand Up @@ -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 */
Expand Down

0 comments on commit 4ca3bca

Please sign in to comment.