remove PARANOID from comments

parent 1ebebd30
...@@ -3399,8 +3399,7 @@ scan_oct(const int *start, int len, int *retlen) ...@@ -3399,8 +3399,7 @@ scan_oct(const int *start, int len, int *retlen)
const int *s = start; const int *s = start;
int retval = 0; int retval = 0;
/* PARANOID: assert(len <= 3) */ /* assert(len <= 3) */
while (len-- && *s >= '0' && *s <= '7') { while (len-- && *s >= '0' && *s <= '7') {
retval <<= 3; retval <<= 3;
retval |= *s++ - '0'; retval |= *s++ - '0';
...@@ -3418,8 +3417,7 @@ scan_hex(const int *start, int len, int *retlen) ...@@ -3418,8 +3417,7 @@ scan_hex(const int *start, int len, int *retlen)
register int retval = 0; register int retval = 0;
char *tmp; char *tmp;
/* PARANOID: assert(len <= 2) */ /* assert(len <= 2) */
while (len-- && *s && (tmp = strchr(hexdigit, *s))) { while (len-- && *s && (tmp = strchr(hexdigit, *s))) {
retval <<= 4; retval <<= 4;
retval |= (tmp - hexdigit) & 15; retval |= (tmp - hexdigit) & 15;
......
...@@ -563,8 +563,7 @@ str_eql(mrb_state *mrb, const mrb_value str1, const mrb_value str2) ...@@ -563,8 +563,7 @@ str_eql(mrb_state *mrb, const mrb_value str1, const mrb_value str2)
{ {
const size_t len = RSTRING_LEN(str1); 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 (len != RSTRING_LEN(str2)) return FALSE;
if (memcmp(RSTRING_PTR(str1), RSTRING_PTR(str2), len) == 0) if (memcmp(RSTRING_PTR(str1), RSTRING_PTR(str2), len) == 0)
return TRUE; return TRUE;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment