mirror of https://github.com/KLayout/klayout.git
Merge pull request #2053 from hzeller/feature-20250519-fix-hex2int
Fix logic error in hex2int.
This commit is contained in:
commit
61a51e8722
|
|
@ -41,7 +41,7 @@ static char hex2int (char c)
|
|||
return c - '0';
|
||||
} else if (c >= 'A' && c <= 'F') {
|
||||
return (c - 'A') + 10;
|
||||
} else if (c >= 'a' || c <= 'f') {
|
||||
} else if (c >= 'a' && c <= 'f') {
|
||||
return (c - 'a') + 10;
|
||||
} else {
|
||||
return 0;
|
||||
|
|
|
|||
Loading…
Reference in New Issue