CVS: sml-dist/src/runtime/kernel globals.c,1.3,1.4
Matthias Blume <[email protected]>
| Newsgroups | gmane.comp.lang.sml.smlnj.commits |
|---|---|
| Message-ID | <[email protected]> |
Update of /cvsroot/smlnj/sml-dist/src/runtime/kernel
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv30000/src/runtime/kernel
Modified Files:
globals.c
Log Message:
fixed off-by-one error in globals.c
Index: globals.c
===================================================================
RCS file: /cvsroot/smlnj/sml-dist/src/runtime/kernel/globals.c,v
retrieving revision 1.3
retrieving revision 1.4
diff -C2 -d -r1.3 -r1.4
*** globals.c 11 Mar 2002 15:20:52 -0000 1.3
--- globals.c 7 Jan 2005 17:44:23 -0000 1.4
***************
*** 30,34 ****
DESC_string, \
s, \
! INT_CtoML(sizeof(s)) \
}
--- 30,34 ----
DESC_string, \
s, \
! INT_CtoML(sizeof(s)-1) \
}
***************
*** 62,66 ****
PVT char CONCAT(id,_data)[] = s; \
ml_string_t id = { \
! DESC_string, ML_unit, INT_CtoML(sizeof(s)) \
}
--- 62,66 ----
PVT char CONCAT(id,_data)[] = s; \
ml_string_t id = { \
! DESC_string, ML_unit, INT_CtoML(sizeof(s)-1) \
}
-------------------------------------------------------
The SF.Net email is sponsored by: Beat the post-holiday blues
Get a FREE limited edition SourceForge.net t-shirt from ThinkGeek.
It's fun and FREE -- well, almost....http://www.thinkgeek.com/sfshirt