diff options
author | akr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2013-06-07 22:16:15 +0000 |
---|---|---|
committer | akr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2013-06-07 22:16:15 +0000 |
commit | 97b5a9c1025e583099aa624bcab0251f2e7aae96 (patch) | |
tree | 8f26611e831813fa3b97526d91d3c29c7c47719f /bignum.c | |
parent | b0f14c8b58e8fd56f0e4b22dc3b91b4e6162e44e (diff) |
Refine error messages.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@41158 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'bignum.c')
-rw-r--r-- | bignum.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -552,11 +552,11 @@ validate_integer_pack_format(size_t wordsize, size_t nails, int flags) int byteorder_bits = flags & INTEGER_PACK_BYTEORDER_MASK; if (wordorder_bits != INTEGER_PACK_MSWORD_FIRST && wordorder_bits != INTEGER_PACK_LSWORD_FIRST) - rb_raise(rb_eArgError, "unexpected wordorder"); + rb_raise(rb_eArgError, "unexpected word order"); if (byteorder_bits != INTEGER_PACK_MSBYTE_FIRST && byteorder_bits != INTEGER_PACK_LSBYTE_FIRST && byteorder_bits != INTEGER_PACK_NATIVE_BYTE_ORDER) - rb_raise(rb_eArgError, "unexpected endian"); + rb_raise(rb_eArgError, "unexpected byte order"); if (wordsize == 0) rb_raise(rb_eArgError, "invalid wordsize: %"PRI_SIZE_PREFIX"u", wordsize); if (SSIZE_MAX < wordsize) |