diff options
author | antirez <antirez> | 2006-11-01 17:18:25 +0000 |
---|---|---|
committer | antirez <antirez> | 2006-11-01 17:18:25 +0000 |
commit | 4a603592c6632c59533cb310f194b2ebac0d0630 (patch) | |
tree | 7e916badcc386c4a3ff1dd2fb4688b65339c9cd9 | |
parent | e02afbe819aee8a428889e92a40311247e9c7d2b (diff) | |
download | jimtcl-4a603592c6632c59533cb310f194b2ebac0d0630.zip jimtcl-4a603592c6632c59533cb310f194b2ebac0d0630.tar.gz jimtcl-4a603592c6632c59533cb310f194b2ebac0d0630.tar.bz2 |
Minor change to (hopefully) avoid a warning with some (non-gcc) compiler.
-rw-r--r-- | ChangeLog | 5 | ||||
-rw-r--r-- | jim.c | 6 |
2 files changed, 8 insertions, 3 deletions
@@ -1,3 +1,8 @@ +2006-11-01 17:03 antirez + + * ChangeLog, jim.c: Fixed error message when trying to access a non + existing key in dictionary + 2006-11-01 14:37 antirez * jim.c, jim.h: Fix to expr parsing (now hex digits work as @@ -2,7 +2,7 @@ * Copyright 2005 Salvatore Sanfilippo <antirez@invece.org> * Copyright 2005 Clemens Hintze <c.hintze@gmx.net> * - * $Id: jim.c,v 1.165 2006/11/01 16:03:13 antirez Exp $ + * $Id: jim.c,v 1.166 2006/11/01 17:18:25 antirez Exp $ * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -1881,7 +1881,7 @@ void DupStringInternalRep(Jim_Interp *interp, Jim_Obj *srcPtr, Jim_Obj *dupPtr) int SetStringFromAny(Jim_Interp *interp, Jim_Obj *objPtr) { /* Get a fresh string representation. */ - (void*) Jim_GetString(objPtr, NULL); + (void) Jim_GetString(objPtr, NULL); /* Free any other internal representation. */ Jim_FreeIntRep(interp, objPtr); /* Set it as string, i.e. just set the maxLength field. */ @@ -11704,7 +11704,7 @@ int Jim_InteractivePrompt(Jim_Interp *interp) printf("Welcome to Jim version %d.%d, " "Copyright (c) 2005 Salvatore Sanfilippo\n", JIM_VERSION / 100, JIM_VERSION % 100); - printf("CVS ID: $Id: jim.c,v 1.165 2006/11/01 16:03:13 antirez Exp $\n"); + printf("CVS ID: $Id: jim.c,v 1.166 2006/11/01 17:18:25 antirez Exp $\n"); Jim_SetVariableStrWithStr(interp, "jim_interactive", "1"); while (1) { char buf[1024]; |