Prechádzať zdrojové kódy

- avoid warning about cast from pointer to integer of different size

Bernhard Reutner-Fischer 17 rokov pred
rodič
commit
5e25c1061c
1 zmenil súbory, kde vykonal 1 pridanie a 1 odobranie
  1. 1 1
      libc/stdio/_scanf.c

+ 1 - 1
libc/stdio/_scanf.c

@@ -1826,7 +1826,7 @@ int attribute_hidden __psfs_do_numeric(psfs_t *psfs, struct scan_cookie *sc)
 				if (psfs->store) {
 					++psfs->cnt;
 					_store_inttype(psfs->cur_ptr, psfs->dataargtype,
-								   (uintmax_t) NULL);
+								   (uintmax_t)0);
 				}
 				return 0;
 			}