Revision 1343 trunk/src/linad99/gs_set.cpp

gs_set.cpp (revision 1343)
197 197
      "      other compilers allow long long integers" << endl;
198 198
  }
199 199
#else
200
  long long int gs_size=(long long int) (sizeof(grad_stack_entry));
201

  
202
  if ( (unsigned long int) (LLONG_MAX) < i)
200
  if (LLONG_MAX < i)
203 201
  {
204
    unsigned int max_size=LLONG_MAX;
202
    long long int max_size=LLONG_MAX;
205 203

  
206 204
    cerr << "\n\n It appears that the size you are setting for "
207 205
      "the\n GRADSTACK_BUFFER is > " << LLONG_MAX <<
......
209 207
    cerr << "for the function\n"
210 208
      "--- gradient_structure::set_GRADSTACK_BUFFER_BYTES(long long int i) ---\n"
211 209
      "should probably be  " << max_size << endl;
212
    cerr << "LLONG_MAX = " << (unsigned long int) (LLONG_MAX) << endl;
210
    cerr << "LLONG_MAX = " << LLONG_MAX << endl;
213 211
    cerr << " i = " << i << endl;
214 212
  }
213
  long long int gs_size=(long long int)sizeof(grad_stack_entry);
215 214
#endif
216 215
  check_set_error("GRADSTACK_BUFFER_SIZE");
217 216
  GRADSTACK_BUFFER_SIZE = i/gs_size;

Also available in: Unified diff