Fixed signedness warnings

This commit is contained in:
giomba 2019-08-13 17:50:17 +02:00
parent 1a676c541a
commit e54cd8f633
3 changed files with 4 additions and 4 deletions

View File

@ -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;

View File

@ -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;

View File

@ -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