mirror of
https://github.com/ddidderr/wuffs.git
synced 2026-11-20 08:47:28 +01:00
Add single-quoted strings
This commit is contained in:
1 parent
3bfed6d812
commit
9e50918718
14 files changed
+273
-84
No files matched your search
@@ -70,7 +70,7 @@ pub func decoder.decode_image_config?(dst: nptr base.image_config, src: base.io_
|
||||
// Read the BITMAPFILEHEADER (14 bytes).
|
||||
|
||||
magic = args.src.read_u16le_as_u32?()
|
||||
if magic <> 0x4D42 { // "BM" little-endian.
|
||||
if magic <> 'BM'le {
|
||||
return "#bad header"
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user