Revision 810 branches/pthreads-737/src/linad99/jacobclc.cpp

jacobclc.cpp (revision 810)
93 93
  ADUNCONST(dmatrix,jac)
94 94

  
95 95
  unsigned int i;
96
  long int lpos;
96
  my_off_t lpos;
97 97
  if(!instances)
98 98
  {
99 99
    jac.initialize();
......
118 118

  
119 119
  int& _GRADFILE_PTR=GRAD_STACK1->_GRADFILE_PTR;
120 120
  // check to see if anything has been written into the file
121
  long int last_gpos=lseek(_GRADFILE_PTR,0L,SEEK_CUR);
121
  my_off_t last_gpos=lseek(_GRADFILE_PTR,0L,SEEK_CUR);
122
  //long int last_gpos=lseek(_GRADFILE_PTR,0L,SEEK_CUR);
122 123

  
123 124
  //save current contents of the buffer so we can get them later
124 125
  if (last_gpos)
......
127 128
  }
128 129

  
129 130
  // check to see if anything has been written into the file
130
  long int last_cpos=lseek(fp->file_ptr,0L,SEEK_CUR);
131
  my_off_t  last_cpos=lseek(fp->file_ptr,0L,SEEK_CUR);
132
  //long int last_cpos=lseek(fp->file_ptr,0L,SEEK_CUR);
131 133

  
132 134
  //save current contents of the buffer so we can get them later
133 135
  if (last_cpos)
......
181 183
    // position the cmpdif file correctly;
182 184
    if (last_cpos)
183 185
    {
184
      long int cmp_lpos=DEPVARS_INFO->cmpdif_file_position(ijac);
186
      my_off_t cmp_lpos=DEPVARS_INFO->cmpdif_file_position(ijac);
187
      //long int cmp_lpos=DEPVARS_INFO->cmpdif_file_position(ijac);
185 188
      lseek(fp->file_ptr,cmp_lpos,SEEK_SET);
186 189
      #ifndef __MSC__
187 190
        fp->read_cmpdif_stack_buffer(cmp_lpos);
188 191
      #else
189
        fp->read_cmpdif_stack_buffer((long int&)cmp_lpos);
192
        fp->read_cmpdif_stack_buffer(cmp_lpos);
193
        //fp->read_cmpdif_stack_buffer((long int&)cmp_lpos);
190 194
      #endif
191 195
    }
192 196
    GRAD_STACK1->_GRADFILE_PTR = GRAD_STACK1->gradfile_handle();

Also available in: Unified diff