Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit faa436c

Browse files
committed
use only j for imaginary constants
1 parent efa3143 commit faa436c

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

Parser/tokenizer.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -573,7 +573,7 @@ tok_get(tok, p_start, p_end)
573573
if (c == '.')
574574
goto fraction;
575575
#ifndef WITHOUT_COMPLEX
576-
if (c == 'i' || c == 'I' || c == 'j' || c == 'J')
576+
if (c == 'j' || c == 'J')
577577
goto imaginary;
578578
#endif
579579
if (c == 'x' || c == 'X') {
@@ -622,7 +622,7 @@ tok_get(tok, p_start, p_end)
622622
}
623623
}
624624
#ifndef WITHOUT_COMPLEX
625-
if (c == 'i' || c == 'I' || c == 'j' || c == 'J')
625+
if (c == 'j' || c == 'J')
626626
/* Imaginary part */
627627
imaginary:
628628
c = tok_nextc(tok);

0 commit comments

Comments
 (0)