Skip to content

Commit b4b04fe

Browse files
committed
fix: rename INT to INTGR in expected_type enum to avoid redeclaration issues
1 parent 33b5a42 commit b4b04fe

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

test/main.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
#define ERROR_MSG if (rc != SQLITE_OK) printf("Error: %s\n", sqlite3_errmsg(db));
2424
#define ABORT_TEST abort_test: ERROR_MSG if (db) sqlite3_close(db); return rc;
2525

26-
typedef enum { PRINT, NOPRINT, INT, GT0 } expected_type;
26+
typedef enum { PRINT, NOPRINT, INTGR, GT0 } expected_type;
2727

2828
typedef struct {
2929
expected_type type;
@@ -45,7 +45,7 @@ static int callback(void *data, int argc, char **argv, char **names) {
4545
printf("\n");
4646
return SQLITE_OK;
4747

48-
case INT:
48+
case INTGR:
4949
if(argc == 1){
5050
int res = atoi(argv[0]);
5151

@@ -101,7 +101,7 @@ int db_print (sqlite3 *db, const char *sql) {
101101

102102
int db_expect_int (sqlite3 *db, const char *sql, int expect) {
103103
expected_t data;
104-
data.type = INT;
104+
data.type = INTGR;
105105
data.value.i = expect;
106106

107107
int rc = sqlite3_exec(db, sql, callback, &data, NULL);

0 commit comments

Comments
 (0)