Skip to content

Commit

Permalink
Lose implicit conversions.
Browse files Browse the repository at this point in the history
  • Loading branch information
rowland committed Jun 8, 2019
1 parent fd2a504 commit ed40373
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions fb.c
Expand Up @@ -1292,9 +1292,9 @@ static void fb_cursor_free(struct FbCursor *fb_cursor)

static VALUE sql_decimal_to_bigdecimal(long long sql_data, int scale)
{
int i;
unsigned long i;
char bigdecimal_buffer[23];
int bigdecimal_dot;
unsigned long bigdecimal_dot;
sprintf(bigdecimal_buffer, "%022lld", sql_data);
bigdecimal_dot = strlen(bigdecimal_buffer) + scale;
for (i = strlen(bigdecimal_buffer); i > bigdecimal_dot; i--)
Expand Down

0 comments on commit ed40373

Please sign in to comment.