Skip to content

Commit

Permalink
ctlib: fix type cast
Browse files Browse the repository at this point in the history
The argument is a CS_BOOL, not a char. This worked only on little
endian platforms.

Signed-off-by: Frediano Ziglio <freddy77@gmail.com>
  • Loading branch information
freddy77 committed Jun 11, 2017
1 parent 93b0862 commit e6cb3e8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/ctlib/ct.c
Expand Up @@ -3613,7 +3613,7 @@ ct_options(CS_CONNECTION * con, CS_INT action, CS_INT option, CS_VOID * param, C
if (action == CS_SET)
return CS_FAIL;
}
tds_argument.ti = !*(char *) param;
tds_argument.ti = !*(CS_BOOL *) param;
tds_argsize = (action == CS_SET) ? 1 : 0;
break;
default:
Expand Down

0 comments on commit e6cb3e8

Please sign in to comment.