Commit 0ee2cbed authored by Petri Hintukainen's avatar Petri Hintukainen

Use unsigned type for unsigned data

parent 9d612366
......@@ -768,7 +768,7 @@ static struct file_entry *_read_file_entry(udfread *udf,
const struct long_ad *icb)
{
struct file_entry *fe = NULL;
int32_t num_blocks = (icb->length + UDF_BLOCK_SIZE - 1) / UDF_BLOCK_SIZE;
uint32_t num_blocks = (icb->length + UDF_BLOCK_SIZE - 1) / UDF_BLOCK_SIZE;
uint8_t *buf;
int tag_id;
......@@ -850,7 +850,7 @@ static int _parse_dir(const uint8_t *data, uint32_t length, struct udf_dir *dir)
static struct udf_dir *_read_dir_file(udfread *udf, const struct long_ad *loc)
{
int32_t num_blocks = (loc->length + UDF_BLOCK_SIZE - 1) / UDF_BLOCK_SIZE;
uint32_t num_blocks = (loc->length + UDF_BLOCK_SIZE - 1) / UDF_BLOCK_SIZE;
uint8_t *data;
struct udf_dir *dir = NULL;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment