diff options
author | Michael Schroeder <mls@suse.de> | 2012-11-27 15:23:40 +0100 |
---|---|---|
committer | Michael Schroeder <mls@suse.de> | 2012-11-27 15:23:40 +0100 |
commit | 2f5f3003d1869dad502f481dc30bca2e3a6cd8c4 (patch) | |
tree | 269ab04513096f4369503f9e9737dfd26df39368 /bindings | |
parent | a8753078367df0c41f2de081f5936b7eb6830d6c (diff) | |
download | libsolv-2f5f3003d1869dad502f481dc30bca2e3a6cd8c4.tar.gz libsolv-2f5f3003d1869dad502f481dc30bca2e3a6cd8c4.tar.bz2 libsolv-2f5f3003d1869dad502f481dc30bca2e3a6cd8c4.zip |
fix EXTEND calls in perl bindings
Diffstat (limited to 'bindings')
-rw-r--r-- | bindings/solv.i | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/bindings/solv.i b/bindings/solv.i index a6171bc..8bd8ee4 100644 --- a/bindings/solv.i +++ b/bindings/solv.i @@ -100,8 +100,8 @@ # %typemap(out) Queue { int i; - if (argvi + $1.count + 1>= items) { - EXTEND(sp, items - (argvi + $1.count + 1) + 1); + if (argvi + $1.count + 1 >= items) { + EXTEND(sp, (argvi + $1.count + 1) - items + 1); } for (i = 0; i < $1.count; i++) ST(argvi++) = SvREFCNT_inc(SWIG_From_int($1.elements[i])); @@ -113,7 +113,7 @@ int cnt = $1.count / step; Id *idp = $1.elements; if (argvi + cnt + 1 >= items) { - EXTEND(sp, items - (argvi + cnt + 1) + 1); + EXTEND(sp, (argvi + cnt + 1) - items + 1); } for (i = 0; i < cnt; i++, idp += step) { |