Make it a bit clearer what's going on - ASCII '0' has the decimal value
authorguy <guy@f5534014-38df-0310-8fa8-9805f1628bb7>
Sat, 2 Oct 2010 08:04:15 +0000 (08:04 +0000)
committerguy <guy@f5534014-38df-0310-8fa8-9805f1628bb7>
Sat, 2 Oct 2010 08:04:15 +0000 (08:04 +0000)
48, and that's converting '0'-'9' to 0-9.

git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@34326 f5534014-38df-0310-8fa8-9805f1628bb7

wiretap/catapult_dct2000.c

index 3e492d6a43ded40f47ed0de290df970d86e1ac33..bea01d10d34633baa68cc84b38000e4d0dbd168a 100644 (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';
     }
 }