diff options
Diffstat (limited to 'src')
-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); |