summaryrefslogtreecommitdiffstats
path: root/transcode.c
diff options
context:
space:
mode:
authorduerst <duerst@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2009-11-25 10:28:45 +0000
committerduerst <duerst@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2009-11-25 10:28:45 +0000
commit203831173c9e9f747e4311a9519840890e2bb655 (patch)
tree244b69982c3470cd9d5b7c58a505a14d44f6ce60 /transcode.c
parent6ddb4e913c4bf0beabbef3d69cfa2767af465338 (diff)
downloadruby-203831173c9e9f747e4311a9519840890e2bb655.tar.gz
ruby-203831173c9e9f747e4311a9519840890e2bb655.tar.xz
ruby-203831173c9e9f747e4311a9519840890e2bb655.zip
* transcode.c: Added a check for an internal error
(with Tatsuya Mizuno) git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@25919 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'transcode.c')
-rw-r--r--transcode.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/transcode.c b/transcode.c
index 22b44d828..01f324574 100644
--- a/transcode.c
+++ b/transcode.c
@@ -674,6 +674,8 @@ transcode_restartable0(const unsigned char **in_pos, unsigned char **out_pos,
goto invalid;
case UNDEF:
goto undef;
+ default:
+ rb_raise(rb_eRuntimeError, "unknown transcoding instruction");
}
continue;