Revision 348 trunk/src/linad99/ddlist.cpp

ddlist.cpp (revision 348)
39 39
extern char otter_address5[];
40 40

  
41 41

  
42
char * ddlist_space;
43
char * ddlist_spacea;
42
char* ddlist_space;
43
char* ddlist_spacea;
44 44

  
45 45
/**
46 46
 * Description not yet available.
......
67 67
  last = 0;
68 68
  last_offset = 0;
69 69
  nlinks = 0;
70
  dlink_addresses = new dlink *[gradient_structure::MAX_DLINKS];
71
  ddlist_space= (char *) malloc(2*sizeof(double)*
72
   (gradient_structure::MAX_DLINKS+1));
70
  dlink_addresses = new dlink*[gradient_structure::MAX_DLINKS];
71
  ddlist_space = (char*)malloc(2 * sizeof(double) * (gradient_structure::MAX_DLINKS + 1));
73 72
  //cout << (int) (ddlist_space) << endl;
74 73
  //cout << ((int) (ddlist_space))%8 << endl;
75
#if defined(__SUNPRO_CC) && defined(__x86_64)
76
  long adjust=(8 - ((long)(ddlist_space))%8)%8;
74
#if defined(__x86_64)
75
  intptr_t adjust=(8 - ((intptr_t)(ddlist_space))%8)%8;
77 76
#else
78 77
  int adjust=(8- ((int) (ddlist_space))%8)%8;
79 78
#endif

Also available in: Unified diff