Skip to content

Commit

Permalink
Remove warning compiling with clang
Browse files Browse the repository at this point in the history
clang complains about signed shift not portable.

Signed-off-by: Frediano Ziglio <freddy77@gmail.com>
  • Loading branch information
freddy77 committed Jul 22, 2016
1 parent ec71584 commit 42858ca
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/tds/convert.c
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ static const char *parse_numeric(const char *buf, const char *pend,
#define IS_UINT(x) (0 <= (x) && (x) <= TDS_UINT_MAX)

#define TDS_INT8_MAX ((((TDS_INT8) 0x7fffffffl) << 32) + (TDS_INT8) 0xfffffffflu)
#define TDS_INT8_MIN (((TDS_INT8) (-0x7fffffffl-1)) << 32)
#define TDS_INT8_MIN (-(((TDS_INT8)1)<<62) -(((TDS_INT8)1)<<62))
#define IS_INT8(x) (TDS_INT8_MIN <= (x) && (x) <= TDS_INT8_MAX)

#define TDS_UINT8_MAX ((((TDS_UINT8) 0xfffffffflu) << 32) + 0xfffffffflu)
Expand Down

0 comments on commit 42858ca

Please sign in to comment.