Skip to content

Undefined property warning in console #1

@rcliftonharvey

Description

@rcliftonharvey

while ((str[ptr]) % 1 === 0) { //libbcmath.isdigit(str[ptr])) {

Line 154 currently leads to the while loop checking for an out-of-range ptr in str, so there's always an "undefined property" warning in the browser console. Can be fixed by using a for loop instead, of course the ptr then doesn't have to be incremented inside the loop anymore:

for(;ptr < str.length;++ptr)
{ //bcmath.isdigit(str[ptr])) {
  //ptr++;
  strscale++;    /* digits */
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions