pkgsrc/www/firefox38/patches/patch-js_src_gc_Statistics.cpp
ryoon 9cd6a39c3e Import firefox38-38.1.0 as www/firefox38.
Mozilla Firefox is a free, open-source and cross-platform web browser
for Windows, Linux, MacOS X and many other operating systems.

It is fast and easy to use, and offers many advantages over other web
browsers, such as tabbed browsing and the ability to block pop-up
windows.

Firefox also offers excellent bookmark and history management, and it
can be extended by developers using industry standards such as XML,
CSS, JavaScript, C++, etc. Many extensions are available.

This package tracks 38 ESR.
2015-07-09 14:13:51 +00:00

15 lines
585 B
C++

$NetBSD: patch-js_src_gc_Statistics.cpp,v 1.1 2015/07/09 14:13:52 ryoon Exp $
--- js/src/gc/Statistics.cpp.orig 2015-02-05 11:52:40.000000000 +0000
+++ js/src/gc/Statistics.cpp 2015-02-05 11:52:28.000000000 +0000
@@ -221,8 +221,8 @@
while (*c) {
if (*c == ' ' || *c == '\t')
p('_');
- else if (isupper(*c))
- p(tolower(*c));
+ else if (isupper((unsigned char)*c))
+ p(tolower((unsigned char)*c));
else if (*c == '+')
p("added_");
else if (*c == '-')