]> granicus.if.org Git - php/commitdiff
- hopla, before I got more conflicts ;)
authorPierre Joye <pajoye@php.net>
Sat, 22 Jul 2006 12:59:15 +0000 (12:59 +0000)
committerPierre Joye <pajoye@php.net>
Sat, 22 Jul 2006 12:59:15 +0000 (12:59 +0000)
  (fix compiler warnings with latest const char changes)

ext/filter/sanitizing_filters.c

index 50341f13254dd1d46cec1250bc5c0b15d022fd06..c4850557e97437db371f1fad0e143d4b87901b84 100644 (file)
@@ -303,13 +303,13 @@ void php_filter_number_float(PHP_INPUT_FILTER_PARAM_DECL)
 
        /* depending on flags, strip '.', 'e', ",", "'" */
        if (flags & FILTER_FLAG_ALLOW_FRACTION) {
-               filter_map_update(&map, 2, (unsigned char *) ".");
+               filter_map_update(&map, 2, (const unsigned char *) ".");
        }
        if (flags & FILTER_FLAG_ALLOW_THOUSAND) {
-               filter_map_update(&map, 3,  (unsigned char *) ",");
+               filter_map_update(&map, 3,  (const unsigned char *) ",");
        }
        if (flags & FILTER_FLAG_ALLOW_SCIENTIFIC) {
-               filter_map_update(&map, 4,  (unsigned char *) "eE");
+               filter_map_update(&map, 4,  (const unsigned char *) "eE");
        }
        filter_map_apply(value, &map);
 }