parent
d43b95a0e4
commit
6f2bb62082
|
@ -5,6 +5,7 @@ use std::{
|
||||||
|
|
||||||
use anyhow::{bail, Result};
|
use anyhow::{bail, Result};
|
||||||
use num_enum::{IntoPrimitive, TryFromPrimitive};
|
use num_enum::{IntoPrimitive, TryFromPrimitive};
|
||||||
|
use tracing::warn;
|
||||||
|
|
||||||
use crate::{
|
use crate::{
|
||||||
obj::{ObjSymbol, ObjSymbolKind},
|
obj::{ObjSymbol, ObjSymbolKind},
|
||||||
|
@ -210,17 +211,11 @@ impl FromReader for CommentSym {
|
||||||
out.align = u32::from_reader(reader, e)?;
|
out.align = u32::from_reader(reader, e)?;
|
||||||
out.vis_flags = u8::from_reader(reader, e)?;
|
out.vis_flags = u8::from_reader(reader, e)?;
|
||||||
if !matches!(out.vis_flags, 0 | 0xD | 0xE) {
|
if !matches!(out.vis_flags, 0 | 0xD | 0xE) {
|
||||||
return Err(io::Error::new(
|
warn!("Unknown vis_flags: {:#X}", out.vis_flags);
|
||||||
io::ErrorKind::InvalidData,
|
|
||||||
format!("Unknown vis_flags: {:#X}", out.vis_flags),
|
|
||||||
));
|
|
||||||
}
|
}
|
||||||
out.active_flags = u8::from_reader(reader, e)?;
|
out.active_flags = u8::from_reader(reader, e)?;
|
||||||
if !matches!(out.active_flags, 0 | 0x8 | 0x10 | 0x20) {
|
if !matches!(out.active_flags, 0 | 0x8 | 0x10 | 0x20) {
|
||||||
return Err(io::Error::new(
|
warn!("Unknown active_flags: {:#X}", out.active_flags);
|
||||||
io::ErrorKind::InvalidData,
|
|
||||||
format!("Unknown active_flags: {:#X}", out.active_flags),
|
|
||||||
));
|
|
||||||
}
|
}
|
||||||
let value = u8::from_reader(reader, e)?;
|
let value = u8::from_reader(reader, e)?;
|
||||||
if value != 0 {
|
if value != 0 {
|
||||||
|
|
Loading…
Reference in New Issue