Changeset 162
- Timestamp:
- 10/14/07 05:10:53
- Files:
-
- guts_main/src/cast.upc (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
guts_main/src/cast.upc
r132 r162 38 38 39 39 shared int *p; 40 shared void *q1, *q2; 41 42 int number_phase1, number_phase2; 40 43 41 44 shared[N] int a[N*THREADS]; … … 55 58 */ 56 59 57 int number_phase;58 60 59 /* number_phase = upc_phaseof(((shared[] void *)p));61 number_phase1 = upc_phaseof(((shared[] int *)q1)); 60 62 61 if(number_phase != 0)63 if(number_phase1 != 0) 62 64 GULA_FAIL("failed to setup the correct phase"); 63 */ 65 64 66 /* 65 67 * To check that if a generic pointer-to-shared is cast to a non generic … … 67 69 */ 68 70 69 number_phase = upc_phaseof(((shared[1] void *)p));71 number_phase2 = upc_phaseof(((shared[1] int *)q2)); 70 72 71 if(number_phase != 0)73 if(number_phase2 != 0) 72 74 GULA_FAIL("failed to setup the correct phase"); 73 75
