Fix compiler warning
card-piv.c: In function 'piv_write_binary': card-piv.c:1364: warning: signed and unsigned type in conditional expression count is a size_t and must be casted in an int since the fucntion returns an int. git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@5461 c6295689-39f2-0310-b995-f0e70906c6a9
This commit is contained in:
parent
96ff2bbe36
commit
38e420bec3
|
@ -1361,7 +1361,7 @@ static int piv_write_binary(sc_card_t *card, unsigned int idx,
|
|||
}
|
||||
priv->w_buf = NULL;
|
||||
priv->w_buf_len = 0;
|
||||
SC_FUNC_RETURN(card->ctx, SC_LOG_DEBUG_NORMAL, (r < 0)? r : count);
|
||||
SC_FUNC_RETURN(card->ctx, SC_LOG_DEBUG_NORMAL, (r < 0)? r : (int)count);
|
||||
}
|
||||
|
||||
/*
|
||||
|
|
Loading…
Reference in New Issue