summaryrefslogtreecommitdiffstats
path: root/generic/tclBasic.c
diff options
context:
space:
mode:
authornijtmans <nijtmans>2010-05-03 14:36:40 (GMT)
committernijtmans <nijtmans>2010-05-03 14:36:40 (GMT)
commit603632160ce039289adcabac2684febc649c535b (patch)
treee5adab677558dc22434d9ee6b375a48333aea345 /generic/tclBasic.c
parent091c9fee62375b69529473b975e37dc279f0bc83 (diff)
downloadtcl-603632160ce039289adcabac2684febc649c535b.zip
tcl-603632160ce039289adcabac2684febc649c535b.tar.gz
tcl-603632160ce039289adcabac2684febc649c535b.tar.bz2
CONSTify various useful internal functions
(TclBignumToDouble, TclCeil, TclFloor), and related tommath functions.
Diffstat (limited to 'generic/tclBasic.c')
-rw-r--r--generic/tclBasic.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/generic/tclBasic.c b/generic/tclBasic.c
index 7ded8f7..a7dce89 100644
--- a/generic/tclBasic.c
+++ b/generic/tclBasic.c
@@ -16,7 +16,7 @@
* See the file "license.terms" for information on usage and redistribution of
* this file, and for a DISCLAIMER OF ALL WARRANTIES.
*
- * RCS: @(#) $Id: tclBasic.c,v 1.455 2010/04/30 12:38:46 dkf Exp $
+ * RCS: @(#) $Id: tclBasic.c,v 1.456 2010/05/03 14:36:41 nijtmans Exp $
*/
#include "tclInt.h"
@@ -7501,8 +7501,7 @@ ExprAbsFunc(
#endif
if (type == TCL_NUMBER_BIG) {
- /* TODO: const correctness ? */
- if (mp_cmp_d((mp_int *) ptr, 0) == MP_LT) {
+ if (mp_cmp_d((const mp_int *) ptr, 0) == MP_LT) {
Tcl_GetBignumFromObj(NULL, objv[1], &big);
tooLarge:
mp_neg(&big, &big);