Browse Source

- MFB: fix compiler warnings

migration/RELEASE_1_0_0
Pierre Joye 20 years ago
parent
commit
592419c53d
  1. 6
      ext/filter/sanitizing_filters.c

6
ext/filter/sanitizing_filters.c

@ -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);
}

Loading…
Cancel
Save