# HG changeset patch # User William Astle # Date 1359182926 25200 # Node ID 201b2774cb0e03f7e0359c381f88f79648c8d9ee # Parent 0e4a9b21ad7b949be50940812886f0dac5985b4d Fix warning about isalpha in input.c on windows Removed reliance in isalpha for detecting absolute paths on windows since the heuristic is clear enough and the allowed drive letters are not locale dependent. diff -r 0e4a9b21ad7b -r 201b2774cb0e lwasm/input.c --- a/lwasm/input.c Fri Jan 25 22:43:10 2013 -0700 +++ b/lwasm/input.c Fri Jan 25 23:48:46 2013 -0700 @@ -93,7 +93,7 @@ return 0; if (s[1] != ':') return 0; - if (isalpha(s[0])) + if ((s[0] >= 'A' && s[0] <= 'Z') || (s[0] >= 'a' && s[0] <= 'A')) return 1; return 0; #else