summaryrefslogtreecommitdiff
path: root/src/argument.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/argument.cpp')
-rw-r--r--src/argument.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/argument.cpp b/src/argument.cpp
index ed37d02..268e2e9 100644
--- a/src/argument.cpp
+++ b/src/argument.cpp
@@ -32,12 +32,12 @@ Argument::Argument(const char *name, Type type, bool required, bool byref)
_info->type_hint = (unsigned char)(type == Type::Array || type == Type::Callable ? type : Type::Null);
#else
_info->array_type_hint = type == Type::Array;
+ _info->return_reference = false;
#endif
_info->class_name = NULL;
_info->class_name_len = 0;
_info->allow_null = false;
_info->pass_by_reference = byref;
- _info->return_reference = false;
_info->required_num_args = 0; // @todo is this correct?
// store if required