Make it a bit clearer what's going on - ASCII '0' has the decimal value

48, and that's converting '0'-'9' to 0-9.

svn path=/trunk/; revision=34326
This commit is contained in:
Guy Harris 2010-10-02 08:04:15 +00:00
parent 3c349772fb
commit e81797342e
1 changed files with 1 additions and 1 deletions

View File

@ -1345,7 +1345,7 @@ static void set_aal_info(union wtap_pseudo_header *pseudo_header,
}
else {
pseudo_header->dct2000.inner_pseudo_header.atm.aal2_cid =
(int)aal_header_chars[11] - 48;
(int)aal_header_chars[11] - '0';
}
}