aboutsummaryrefslogtreecommitdiffstats
path: root/dmyenc.c
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2014-12-03 06:13:58 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2014-12-03 06:13:58 +0000
commita177c2762e9bbe01e2666026cc70474bdace50b5 (patch)
tree1296ec9e4dabf8378a1e8526913a84eebc52c84c /dmyenc.c
parentf235dbeea5ca8aa9e433f3b1b5a8cc70970af304 (diff)
downloadruby-a177c2762e9bbe01e2666026cc70474bdace50b5.tar.gz
load.c: tweak the return value
* load.c (rb_require_internal): tweak the return value, 1 and 0 correspond to true and false in Kernel#require, respectively. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@48697 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'dmyenc.c')
-rw-r--r--dmyenc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/dmyenc.c b/dmyenc.c
index ec58043f88..7e006e826c 100644
--- a/dmyenc.c
+++ b/dmyenc.c
@@ -4,7 +4,7 @@ int ruby_require_internal(const char *, int);
void
Init_enc(void)
{
- if (require("enc/encdb.so") == 0) {
+ if (require("enc/encdb.so") == 1) {
require("enc/trans/transdb.so");
}
}