- Timestamp:
- Jun 27, 2018, 3:20:35 PM (8 years ago)
- Location:
- branches/czw_branch/20170908/Ohana
- Files:
-
- 2 edited
-
. (modified) (1 prop)
-
src/opihi/lib.shell/parse.c (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
branches/czw_branch/20170908/Ohana
- Property svn:mergeinfo changed
-
branches/czw_branch/20170908/Ohana/src/opihi/lib.shell/parse.c
r33662 r40477 145 145 /* simple variable assignment */ 146 146 /* dvomath returns a new string, or NULL, with the result of the expression */ 147 /* if dvomath returns NULL, the expression was not a math operation: treat as a string */ 147 148 val = dvomath (1, &V1, &size, 0); 148 149 if (val == NULL) { 149 150 while (OHANA_WHITESPACE (*V1)) V1++; 150 151 val = strcreate (V1); 152 init_error (); 151 153 } 152 154 // save the result … … 245 247 vec[0].elements.Flt[Nx] = atof (val); 246 248 } else { 247 vec[0].elements.Int[Nx] = atol (val);249 vec[0].elements.Int[Nx] = atoll (val); 248 250 } 249 251 }
Note:
See TracChangeset
for help on using the changeset viewer.
