Update for ZOOM_scanset_term
authorAdam Dickmeiss <adam@indexdata.dk>
Fri, 27 May 2011 12:46:36 +0000 (14:46 +0200)
committerAdam Dickmeiss <adam@indexdata.dk>
Fri, 27 May 2011 12:46:36 +0000 (14:46 +0200)
ZOOM_scanset_term prototype was changed from YAZ 3 to YAZ 4: 3rd and 4th
argument changed from int pointer to size_t pointer.

php_yaz.c

index a672099..6aea2b2 100644 (file)
--- a/php_yaz.c
+++ b/php_yaz.c
@@ -1755,7 +1755,7 @@ PHP_FUNCTION(yaz_scan_result)
        get_assoc(INTERNAL_FUNCTION_PARAM_PASSTHRU, pval_id, &p);
        if (p && p->zoom_scan) {
                int pos = 0;
-               int occ, len;
+               size_t occ, len;
                int size = ZOOM_scanset_size(p->zoom_scan);
                
                for (pos = 0; pos < size; pos++) {