Skip to content

Commit

Permalink
Fix KHTML compilation when using clang.
Browse files Browse the repository at this point in the history
In file included from src/ecma/kjs_traversal.cpp:21:
src/kjs_traversal.lut.h:49:18: error: constant expression
evaluates to 4294967295 which cannot be narrowed to type 'int'
[-Wc++11-narrowing]
   { "SHOW_ALL", DOM::NodeFilter::SHOW_ALL,
      KJS::DontDelete|KJS::ReadOnly, 0, 0 } ,

src/kjs_traversal.lut.h:49:18: note: override this message by
inserting an explicit cast
   { "SHOW_ALL", DOM::NodeFilter::SHOW_ALL,
                 ^~~~~~~~~~~~~~~~~~~~~~~~~
                 static_cast<int>(        )

REVIEW: 116545
  • Loading branch information
milianw committed Mar 5, 2014
1 parent 5af2987 commit dadacaf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/kjs/create_hash_table
100755 → 100644
Original file line number Diff line number Diff line change
Expand Up @@ -245,7 +245,7 @@ sub output() {
if (defined($entry)) {
my $key = $keys[$entry];
print " \{ \"" . $key . "\"";
print ", " . $values[$entry];
print ", static_cast<int>(" . $values[$entry] . ")";
my $kjsattrs = $attrs[$entry];
if ($kjsattrs ne "0") {
$kjsattrs =~ s/([^|]+)/KJS::$1/g; # DontDelete|Function -> KJS::DontDelete|KJS::Function
Expand Down

0 comments on commit dadacaf

Please sign in to comment.