Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/torch/torch7.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--lib/TH/THRandom.h2
-rw-r--r--lib/TH/generic/THStorage.h2
2 files changed, 2 insertions, 2 deletions
diff --git a/lib/TH/THRandom.h b/lib/TH/THRandom.h
index dd84a2b..28a14c0 100644
--- a/lib/TH/THRandom.h
+++ b/lib/TH/THRandom.h
@@ -25,7 +25,7 @@ typedef struct THGenerator {
#define torch_Generator "torch.Generator"
/* Manipulate THGenerator objects */
-TH_API THGenerator * THGenerator_new();
+TH_API THGenerator * THGenerator_new(void);
TH_API THGenerator * THGenerator_copy(THGenerator *self, THGenerator *from);
TH_API void THGenerator_free(THGenerator *gen);
diff --git a/lib/TH/generic/THStorage.h b/lib/TH/generic/THStorage.h
index 8952b35..79013d8 100644
--- a/lib/TH/generic/THStorage.h
+++ b/lib/TH/generic/THStorage.h
@@ -34,7 +34,7 @@ typedef struct THStorage
TH_API real* THStorage_(data)(const THStorage*);
TH_API long THStorage_(size)(const THStorage*);
-TH_API int THStorage_(elementSize)();
+TH_API int THStorage_(elementSize)(void);
/* slow access -- checks everything */
TH_API void THStorage_(set)(THStorage*, long, real);