summaryrefslogtreecommitdiff
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
commit80b54214b288a7442d93a7b1e39311c3ce8b9f56 (patch)
tree244b69982c3470cd9d5b7c58a505a14d44f6ce60 /transcode.c
parent1adc3d1c4f6d06b55382d8313812119a9db60427 (diff)
downloadruby-80b54214b288a7442d93a7b1e39311c3ce8b9f56.tar.gz
* transcode.c: Added a check for an internal error
(with Tatsuya Mizuno) git-svn-id: svn+ssh://ci.ruby-lang.org/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 22b44d8280..01f3245742 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;