From b01aedbf7d9cb6bdcdd291e6d4a66f3ef8fa7eb4 Mon Sep 17 00:00:00 2001
From: Jaron Kent-Dobias <jaron@kent-dobias.com>
Date: Tue, 9 Oct 2018 11:50:58 -0400
Subject: two dumb mistakes in the last commit

---
 src/analyze_correlations.cpp | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

(limited to 'src')

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);
-- 
cgit v1.2.3-70-g09d2