OSDN Git Service

- avoid warning about cast from pointer to integer of different size
authorBernhard Reutner-Fischer <rep.dot.nop@gmail.com>
Fri, 23 May 2008 20:57:20 +0000 (20:57 -0000)
committerBernhard Reutner-Fischer <rep.dot.nop@gmail.com>
Fri, 23 May 2008 20:57:20 +0000 (20:57 -0000)
libc/stdio/_scanf.c

index 211a8f7..927a187 100644 (file)
@@ -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;
                        }