diff options
| author | duerst <duerst@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2009-11-25 10:28:45 +0000 |
|---|---|---|
| committer | duerst <duerst@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2009-11-25 10:28:45 +0000 |
| commit | 203831173c9e9f747e4311a9519840890e2bb655 (patch) | |
| tree | 244b69982c3470cd9d5b7c58a505a14d44f6ce60 | |
| parent | 6ddb4e913c4bf0beabbef3d69cfa2767af465338 (diff) | |
| download | ruby-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
| -rw-r--r-- | ChangeLog | 5 | ||||
| -rw-r--r-- | transcode.c | 2 |
2 files changed, 7 insertions, 0 deletions
@@ -1,3 +1,8 @@ +Wed Nov 25 19:30:30 2009 Martin Duerst <duerst@it.aoyama.ac.jp> + + * transcode.c: Added a check for an internal error + (with Tatsuya Mizuno) + Tue Nov 24 22:57:46 2009 Tanaka Akira <akr@fsij.org> * test/ruby/envutil.rb (EnvUtil.invoke_ruby): raise Timeout::Error 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; |
