summaryrefslogtreecommitdiffstats
path: root/ext/tk/stubs.c
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2008-07-23 09:27:49 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2008-07-23 09:27:49 +0000
commit999ef68b82c9c86db8c04af04cb440b808a46e9f (patch)
tree28cd29c0acdfeadf01c3915d295a69e070bc198b /ext/tk/stubs.c
parent47863c90a100e67ddd7daa3aee6974c6ee55a088 (diff)
downloadruby-999ef68b82c9c86db8c04af04cb440b808a46e9f.tar.gz
ruby-999ef68b82c9c86db8c04af04cb440b808a46e9f.tar.xz
ruby-999ef68b82c9c86db8c04af04cb440b808a46e9f.zip
* ext/tk/{stubs,tcltklib}.c, ext/tk/tkutil/tkutil.c: fix warnings
about constness and signedness. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@18188 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'ext/tk/stubs.c')
-rw-r--r--ext/tk/stubs.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/ext/tk/stubs.c b/ext/tk/stubs.c
index a12d48756..4388fb294 100644
--- a/ext/tk/stubs.c
+++ b/ext/tk/stubs.c
@@ -318,7 +318,7 @@ ruby_tk_stubs_init(tcl_ip)
if ((*p_Tk_Init)(tcl_ip) == TCL_ERROR)
return FAIL_Tk_Init;
- if (!Tk_InitStubs(tcl_ip, "8.1", 0))
+ if (!Tk_InitStubs(tcl_ip, (char *)"8.1", 0))
return FAIL_Tk_InitStubs;
#ifdef __MACOS__
@@ -357,7 +357,7 @@ ruby_tk_stubs_safeinit(tcl_ip)
if ((*p_Tk_SafeInit)(tcl_ip) == TCL_ERROR)
return FAIL_Tk_Init;
- if (!Tk_InitStubs(tcl_ip, "8.1", 0))
+ if (!Tk_InitStubs(tcl_ip, (char *)"8.1", 0))
return FAIL_Tk_InitStubs;
#ifdef __MACOS__