Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Merge pull request #93 from deuzeman/spinor_io_fix
The LIME version of read_binary_spinor_data_l was using the "bytes" variable uninitialized.
  • Loading branch information
kostrzewa committed Mar 21, 2012
2 parents 23d1009 + 8b162aa commit 02bd7f8
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion io/spinor_read_binary.c
Expand Up @@ -297,8 +297,10 @@ int read_binary_spinor_data_l(spinor * const s, LimeReader * limereader, DML_Che
DML_SiteRank rank;
int prec;


DML_checksum_init(checksum);

bytes = limeReaderBytes(limereader);

if (bytes == (n_uint64_t)g_nproc * (n_uint64_t)VOLUME * (n_uint64_t)sizeof(spinor)) {
prec = 64;
bytes = sizeof(spinor);
Expand Down

0 comments on commit 02bd7f8

Please sign in to comment.