diff options
author | Alex AUVOLAT <alex.auvolat@ens.fr> | 2013-11-05 10:18:00 +0100 |
---|---|---|
committer | Alex AUVOLAT <alex.auvolat@ens.fr> | 2013-11-05 10:18:00 +0100 |
commit | 94e88e887cf2ee4c6b445924d26e134a90bcbd50 (patch) | |
tree | 14090e40b781d9469c794cb3ed4239115f89edac /csim/load.c | |
parent | 7950298bf80fd1d1f311e7bd4f75b442df7c679c (diff) | |
download | SystDigit-Projet-94e88e887cf2ee4c6b445924d26e134a90bcbd50.tar.gz SystDigit-Projet-94e88e887cf2ee4c6b445924d26e134a90bcbd50.zip |
Reorganized folders.
Diffstat (limited to 'csim/load.c')
-rw-r--r-- | csim/load.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/csim/load.c b/csim/load.c index 05c5f70..a7e6cac 100644 --- a/csim/load.c +++ b/csim/load.c @@ -60,6 +60,10 @@ t_program *load_dumb_netlist (FILE *stream) { p->vars[i].name = malloc(42); // let's bet that the name of a variable will never be longer than 42 chars fscanf(stream, "%s\n", p->vars[i].name); + + if (p->vars[i].size >= 8*sizeof(t_value)) { + fprintf(stderr, "Warning: variable %s might be too big for machine integers.\n", p->vars[i].name); + } } // read input list |