Show
Ignore:
Timestamp:
23.06.2010 14:18:13 (9 years ago)
Author:
sjm84
Message:

Changed from using an int to using a long so that it would be compatible with 64-bit machine-sized pointers

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • main/trunk/greenstone2/runtime-src/src/z3950/z3950proxy.cpp

    r15492 r22292  
    2727#include "comtypes.h" 
    2828#include <stdio.h> 
     29#include <stdlib.h> 
     30#include <string.h> 
    2931 
    3032// z39.50 yaz stuff 
     
    194196  char **c_str_titles;  
    195197  int i; 
    196   int last; 
     198  long last; 
    197199 
    198200  if (gotsinglerecord==true) { 
     
    254256    return (NULL); 
    255257  } 
    256   last=(int)c_str_titles[0]; 
     258  last=(long)c_str_titles[0]; 
    257259  for (i=1;i<=last;++i) { 
    258260    titles->push_back(c_str_titles[i]); 
     
    310312  if (rettitle!="unneeded") { 
    311313    //int dummy; 
    312     if (c_str_titles!=NULL && (int)c_str_titles[0]==1) { 
     314    if (c_str_titles!=NULL && (long)c_str_titles[0]==1) { 
    313315      rettitle.setcstr(c_str_titles[1]); // and check this  
    314316      //////      free (c_str_titles); - we want to "cache" it