Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixed infot.mod for NEURON 9.0.0 #1

Merged
merged 18 commits into from
May 27, 2022
Merged

Fixed infot.mod for NEURON 9.0.0 #1

merged 18 commits into from
May 27, 2022

Conversation

iomaganaris
Copy link
Contributor

With the current version of infot.mod I get the following warning when compiling with NEURON 9.0.0:

 -> Compiling infot.cpp
infot.cpp: In function ‘double entropxfgxp(void*)’:
infot.cpp:1103:25: warning: argument 1 value ‘18446744072709551617’ exceeds maximum object size 9223372036854775807 [-Walloc-size-larger-than=]
 1103 |   pXP = (double*) calloc(szp,sizeof(double));
      |                   ~~~~~~^~~~~~~~~~~~~~~~~~~~
In file included from /usr/include/c++/9/cstdlib:75,
                 from /usr/include/c++/9/stdlib.h:36,
                 from infot.cpp:5:
/usr/include/stdlib.h:542:14: note: in a call to allocation function ‘void* calloc(size_t, size_t)’ declared here
  542 | extern void *calloc (size_t __nmemb, size_t __size)
      |              ^~~~~~

@iomaganaris
Copy link
Contributor Author

matrix.mod and intfsw.mod need also changes in this repo

@ramcdougal ramcdougal merged commit 2e47b3b into ModelDBRepository:master May 27, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants