diff options
| author | Markus Mittendrein <maxmitti@maxmitti.tk> | 2022-02-19 22:05:45 +0100 |
|---|---|---|
| committer | Markus Mittendrein <maxmitti@maxmitti.tk> | 2022-02-19 22:05:45 +0100 |
| commit | 37c3d27574568c52215407c37f2110de8c724c92 (patch) | |
| tree | 3d5708f0a79258fdbf3135082c9f7db4de4d83b8 /DTCallback.c | |
| parent | d446fb171d278fd6815ec60bbd134479fdc7864e (diff) | |
| download | System.c4g-37c3d27574568c52215407c37f2110de8c724c92.tar.gz System.c4g-37c3d27574568c52215407c37f2110de8c724c92.zip | |
#strict 3 fixes
Diffstat (limited to 'DTCallback.c')
| -rw-r--r-- | DTCallback.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/DTCallback.c b/DTCallback.c index 58f6403..5ec876d 100644 --- a/DTCallback.c +++ b/DTCallback.c @@ -172,6 +172,7 @@ global func BindArgs(array binding, array args, bool safe, array& refs) var ret = CreateArray(GetLength(binding)), pos = 0; for(var bind in binding) { + bind ??= 0; // necessary for non-#strict 3 compatibility if(GetType(bind) == C4V_Int || GetType(bind) == C4V_Any && bind >= 0) { ret[pos] = args[bind]; |
