Skip to content

Commit

Permalink
changed from zero size array to fit within the C++ standard, array[] …
Browse files Browse the repository at this point in the history
…is undefined behavior
  • Loading branch information
makeclean committed Jul 27, 2015
1 parent cbc0b3a commit c733173
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/material.h
Original file line number Diff line number Diff line change
Expand Up @@ -362,7 +362,7 @@ namespace pyne
double mass; ///< material mass
double density; ///< material density
double atoms_per_mol; ///< material atoms per mole
double comp []; ///< array of material composition mass weights.
double *comp; ///< array of material composition mass weights.
} material_data;

/// Custom exception for invalid HDF5 protocol numbers
Expand Down

0 comments on commit c733173

Please sign in to comment.