Skip to content

Commit eb90cc9

Browse files
committed
Use a reference with exception types that use vtables
GCC 8 warns about this.
1 parent e2d74c7 commit eb90cc9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/java_bytecode/expr2java.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ std::string floating_point_to_java_string(float_type value)
8484
{
8585
return std::stod(decimal) == value;
8686
}
87-
catch(std::out_of_range)
87+
catch(std::out_of_range&)
8888
{
8989
return false;
9090
}

0 commit comments

Comments
 (0)