Fixed signedness warnings
This commit is contained in:
parent
1a676c541a
commit
e54cd8f633
4
CNS.cpp
4
CNS.cpp
|
@ -2,7 +2,7 @@
|
|||
|
||||
void CNS::fromSmartCard(void) {
|
||||
char* buffer;
|
||||
size_t len;
|
||||
int len;
|
||||
int rv = read_dati_personali_c(&buffer, &len);
|
||||
if (rv != 0) throw ExPCSC("can not read_dati_personali_c()");
|
||||
|
||||
|
@ -21,7 +21,7 @@ void CNS::fromSmartCard(void) {
|
|||
}
|
||||
free(buffer);
|
||||
|
||||
for (int i = 0; i < field.size(); ++i) {
|
||||
for (int i = 0; i < (int)field.size(); ++i) {
|
||||
qDebug() << i << '\t' << field[i].data();
|
||||
switch (i) {
|
||||
case 0: this->dataRilascio = QDate::fromString(QString(field[i].data()), "ddMMyyyy"); break;
|
||||
|
|
|
@ -14,7 +14,7 @@ if (rv != SCARD_S_SUCCESS) { \
|
|||
throw ExPCSC(message); \
|
||||
}
|
||||
|
||||
int read_dati_personali_c(char** output_buffer, size_t* len) {
|
||||
int read_dati_personali_c(char** output_buffer, int* len) {
|
||||
LONG rv;
|
||||
|
||||
SCARDCONTEXT hContext;
|
||||
|
|
|
@ -11,6 +11,6 @@
|
|||
|
||||
#include "Ex.h"
|
||||
|
||||
int read_dati_personali_c(char** output_buffer, size_t* len);
|
||||
int read_dati_personali_c(char** output_buffer, int* len);
|
||||
|
||||
#endif
|
Loading…
Reference in New Issue