From ebec1a3d5d9c2e3ecafb46d72f01f57a58e7998a Mon Sep 17 00:00:00 2001 From: Adam Dickmeiss Date: Fri, 4 Dec 2009 12:05:11 +0100 Subject: [PATCH] Update for ZOOM_scanset_term's size_t parameter --- src/main/java/org/yaz4j/ScanSet.java | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/src/main/java/org/yaz4j/ScanSet.java b/src/main/java/org/yaz4j/ScanSet.java index 819ac1a..da40915 100644 --- a/src/main/java/org/yaz4j/ScanSet.java +++ b/src/main/java/org/yaz4j/ScanSet.java @@ -2,6 +2,7 @@ package org.yaz4j; import org.yaz4j.jni.SWIGTYPE_p_ZOOM_scanset_p; import org.yaz4j.jni.SWIGTYPE_p_int; +import org.yaz4j.jni.SWIGTYPE_p_size_t; import org.yaz4j.jni.yaz4jlib; public class ScanSet { @@ -20,12 +21,12 @@ public class ScanSet { } public ScanTerm get(long index) { - SWIGTYPE_p_int occ = yaz4jlib.new_intp(); - SWIGTYPE_p_int length = yaz4jlib.new_intp(); + SWIGTYPE_p_size_t occ = yaz4jlib.new_size_tp(); + SWIGTYPE_p_size_t length = yaz4jlib.new_size_tp(); String term = yaz4jlib.ZOOM_scanset_term(scanSet, (long) index, occ, length); - int occurences = yaz4jlib.intp_value(occ); - yaz4jlib.delete_intp(occ); - yaz4jlib.delete_intp(length); + long occurences = yaz4jlib.size_tp_value(occ); + yaz4jlib.delete_size_tp(occ); + yaz4jlib.delete_size_tp(length); return new ScanTerm(term, occurences); } -- 1.7.10.4