diff options
author | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2008-07-23 09:27:49 +0000 |
---|---|---|
committer | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2008-07-23 09:27:49 +0000 |
commit | ed9a65c4f609afcabf0a2d7254453592ba0cf243 (patch) | |
tree | 28cd29c0acdfeadf01c3915d295a69e070bc198b /ext/tk/stubs.c | |
parent | 7b9b1f45d35ffeb055c509cba3e9775790d2206b (diff) | |
download | ruby-ed9a65c4f609afcabf0a2d7254453592ba0cf243.tar.gz |
* ext/tk/{stubs,tcltklib}.c, ext/tk/tkutil/tkutil.c: fix warnings
about constness and signedness.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@18188 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'ext/tk/stubs.c')
-rw-r--r-- | ext/tk/stubs.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/ext/tk/stubs.c b/ext/tk/stubs.c index a12d487561..4388fb294d 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__ |