Explorar o código

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

Bernhard Reutner-Fischer %!s(int64=18) %!d(string=hai) anos
pai
achega
5e25c1061c
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  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;
 			}