diff --git a/bindings/cxx/classes.cpp b/bindings/cxx/classes.cpp
index 3043ba51..8ecffd72 100644
--- a/bindings/cxx/classes.cpp
+++ b/bindings/cxx/classes.cpp
@@ -229,7 +229,7 @@ shared_ptr Context::open_file(string filename)
{
const struct sr_input *input;
- check( sr_input_scan_file(filename.c_str(), &input));
+ check(sr_input_scan_file(filename.c_str(), &input));
return shared_ptr(
new Input(shared_from_this(), input), Input::Deleter());
}