diff --git a/src/squeue/print.c b/src/squeue/print.c
index c9f1b84b4f8bbea801bcd9d43c4543ee3eaa966a..b7dd85456035c87ea9cf79a40922cff70168ae19 100644
--- a/src/squeue/print.c
+++ b/src/squeue/print.c
@@ -1260,7 +1260,7 @@ static int _filter_job(job_info_t * job)
 	int filter;
 	ListIterator iterator;
 	uint32_t *job_id, *user;
-	uint16_t *state_id;
+	enum job_states *state_id;
 	char *account, *part, *qos;
 
 	if (params.job_list) {