diff options
author | Jaron Kent-Dobias <jaron@kent-dobias.com> | 2018-10-09 11:50:58 -0400 |
---|---|---|
committer | Jaron Kent-Dobias <jaron@kent-dobias.com> | 2018-10-09 11:50:58 -0400 |
commit | b01aedbf7d9cb6bdcdd291e6d4a66f3ef8fa7eb4 (patch) | |
tree | 6609ae8208371bbebf93b289bac9af5c6afab033 | |
parent | f0ddf00c498392946e3e5a8a71f25efc37418422 (diff) | |
download | c++-b01aedbf7d9cb6bdcdd291e6d4a66f3ef8fa7eb4.tar.gz c++-b01aedbf7d9cb6bdcdd291e6d4a66f3ef8fa7eb4.tar.bz2 c++-b01aedbf7d9cb6bdcdd291e6d4a66f3ef8fa7eb4.zip |
two dumb mistakes in the last commit
-rw-r--r-- | src/analyze_correlations.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/analyze_correlations.cpp b/src/analyze_correlations.cpp index 32887d7..48ee426 100644 --- a/src/analyze_correlations.cpp +++ b/src/analyze_correlations.cpp @@ -433,14 +433,13 @@ int main (int argc, char *argv[]) { } free(data_M); } else if (0 == strcmp(model, "ISING")) { - float *data_M = (int *)malloc(N * sizeof(float)); + int *data_M = (int *)malloc(N * sizeof(float)); fread(data_M, sizeof(int), N, file_M); fclose(file_M); for (int i = 0; i < M; i++) { forward_data[i] = (double)data_M[i]; } free(data_M); - } } else { printf("UNKNOWN MODEL\n"); exit(EXIT_FAILURE); |