Browse Source

Prevent warning when videohubctrl is compiled on 32-bit host.

Georgi Chorbadzhiyski 9 years ago
parent
commit
0e2d4160b9
1 changed files with 1 additions and 1 deletions
  1. 1
    1
      videohubctrl.c

+ 1
- 1
videohubctrl.c View File

390
 static void check_number_of_ports(struct port_set *p) {
390
 static void check_number_of_ports(struct port_set *p) {
391
 	if (p->num > ARRAY_SIZE(p->port))
391
 	if (p->num > ARRAY_SIZE(p->port))
392
 		die("The device supports %d ports. Increase MAX_PORTS (%lu) and recompile the program.",
392
 		die("The device supports %d ports. Increase MAX_PORTS (%lu) and recompile the program.",
393
-			p->num, ARRAY_SIZE(p->port));
393
+			p->num, (unsigned long)ARRAY_SIZE(p->port));
394
 }
394
 }
395
 
395
 
396
 static void reset_routed_to(struct port_set *p) {
396
 static void reset_routed_to(struct port_set *p) {

Loading…
Cancel
Save