From 2617d72ec523d4ffd89f0e6e6d6d80056326db8b Mon Sep 17 00:00:00 2001 From: Gustav Louw Date: Mon, 2 Apr 2018 15:58:25 -0700 Subject: [PATCH] more const --- Tinn.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Tinn.c b/Tinn.c index e1b346b..e5bf2da 100644 --- a/Tinn.c +++ b/Tinn.c @@ -154,7 +154,7 @@ Tinn xtbuild(int nips, int nhid, int nops) void xtsave(const Tinn t, const char* path) { - FILE* file = efopen(path, "w"); + FILE* const file = efopen(path, "w"); // Header. fprintf(file, "%d %d %d\n", t.nips, t.nhid, t.nops); // Biases and weights. @@ -165,7 +165,7 @@ void xtsave(const Tinn t, const char* path) Tinn xtload(const char* path) { - FILE* file = efopen(path, "r"); + FILE* const file = efopen(path, "r"); int nips = 0; int nhid = 0; int nops = 0;