- Timestamp:
- Feb 14, 2011, 1:05:28 PM (15 years ago)
- Location:
- branches/czw_branch/20101203
- Files:
-
- 2 edited
-
. (modified) (1 prop)
-
Ohana/src/opihi/lib.shell/VectorOps.c (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
branches/czw_branch/20101203
- Property svn:mergeinfo changed
-
branches/czw_branch/20101203/Ohana/src/opihi/lib.shell/VectorOps.c
r20936 r30631 178 178 vec[0].Nelements = Nelements; 179 179 if (type == OPIHI_FLT) { 180 REALLOCATE (vec[0].elements.Flt, opihi_flt, Nelements);180 REALLOCATE (vec[0].elements.Flt, opihi_flt, MAX(1, Nelements)); 181 181 vec[0].type = OPIHI_FLT; 182 182 } else { 183 REALLOCATE (vec[0].elements.Int, opihi_int, Nelements);183 REALLOCATE (vec[0].elements.Int, opihi_int, MAX(1, Nelements)); 184 184 vec[0].type = OPIHI_INT; 185 185 }
Note:
See TracChangeset
for help on using the changeset viewer.
