summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorYukihiro Matz Matsumoto <[email protected]>2013-03-14 18:47:59 +0900
committerYukihiro Matz Matsumoto <[email protected]>2013-03-14 18:47:59 +0900
commit535a5489c7028378d9388aa187c7edb946595ec7 (patch)
tree0e7aff3573f406b746e0a5eb80d631c4a7d499c6
parent1ebebd304a1a1012b29679434b92db20f324371c (diff)
downloadmruby-535a5489c7028378d9388aa187c7edb946595ec7.tar.gz
mruby-535a5489c7028378d9388aa187c7edb946595ec7.zip
remove PARANOID from comments
-rw-r--r--src/parse.y6
-rw-r--r--src/string.c3
2 files changed, 3 insertions, 6 deletions
diff --git a/src/parse.y b/src/parse.y
index 0eb8da25a..c4b83bbab 100644
--- a/src/parse.y
+++ b/src/parse.y
@@ -3399,8 +3399,7 @@ scan_oct(const int *start, int len, int *retlen)
const int *s = start;
int retval = 0;
- /* PARANOID: assert(len <= 3) */
-
+ /* assert(len <= 3) */
while (len-- && *s >= '0' && *s <= '7') {
retval <<= 3;
retval |= *s++ - '0';
@@ -3418,8 +3417,7 @@ scan_hex(const int *start, int len, int *retlen)
register int retval = 0;
char *tmp;
- /* PARANOID: assert(len <= 2) */
-
+ /* assert(len <= 2) */
while (len-- && *s && (tmp = strchr(hexdigit, *s))) {
retval <<= 4;
retval |= (tmp - hexdigit) & 15;
diff --git a/src/string.c b/src/string.c
index d34256e63..89bcf0ca6 100644
--- a/src/string.c
+++ b/src/string.c
@@ -563,8 +563,7 @@ str_eql(mrb_state *mrb, const mrb_value str1, const mrb_value str2)
{
const size_t len = RSTRING_LEN(str1);
- /* PARANOID: assert(SIZE_MAX >= MRB_INT_MAX) */
-
+ /* assert(SIZE_MAX >= MRB_INT_MAX) */
if (len != RSTRING_LEN(str2)) return FALSE;
if (memcmp(RSTRING_PTR(str1), RSTRING_PTR(str2), len) == 0)
return TRUE;