passing structs by value
[m6w6/ext-psi] / psi.d / glob.psi
index ce6f5a72c3510a2758c63e5533e3203b545952d3..72c0c76f9d48c2e9256405edd8004510a9aea84a 100644 (file)
@@ -2,7 +2,7 @@ function psi\glob(string $pattern, int $flags, array &$glob = NULL) : int {
        let path = strval($pattern);
        let flags = intval($flags);
        let err = NULL;
-       let buf = arrval($glob);
+       let buf = &arrval($glob);
        return to_int(glob);
        set $glob = to_array(*buf,
                to_int(gl_matchc),