mirror of
https://github.com/ChaiScript/ChaiScript.git
synced 2025-12-06 16:57:04 +08:00
Fix for Clang.
This commit is contained in:
parent
393f8d31ab
commit
fb635033a9
@ -212,7 +212,7 @@ namespace chaiscript
|
||||
|
||||
bytes_read = infile.readsome(buffer, bytes_needed);
|
||||
|
||||
if (bytes_needed == bytes_read
|
||||
if (!bytes_needed < bytes_read
|
||||
&& (buffer[0] == '\xef')
|
||||
&& (buffer[1] == '\xbb')
|
||||
&& (buffer[2] == '\xbf')) {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user