]> hydra-www.ietfng.org Git - instirc/commitdiff
Minor stylistic change in HuffmanCoder
authornwf <nwf@cs.jhu.edu>
Wed, 27 Aug 2008 06:38:47 +0000 (02:38 -0400)
committernwf <nwf@cs.jhu.edu>
Wed, 27 Aug 2008 06:38:47 +0000 (02:38 -0400)
darcs-hash:20080827063847-4d648-77e850ce0e433dc8b59a8d12e2a72b04a2eea706.gz

HuffmanCoder.pm

index 1599f5c188699fbcffa816d6a85286653c72d37b..c8936b327a50c0207b8565b88e16c8f793ea996e 100644 (file)
@@ -125,6 +125,7 @@ sub _is_char($) {
 
 sub decode($$) {
   my ($self, $inst) = @_;
+  my $ccr = $$self{'ccr'};
 
   my $result = "";
   while ($inst ne "") {
@@ -132,7 +133,7 @@ sub decode($$) {
     while (!_is_char($tbl)) {
       my $code = substr($inst, 0, 1);
       $inst = substr($inst, 1);
-      $tbl = _decode_char($$self{'ccr'}, $code, $tbl);
+      $tbl = _decode_char($ccr, $code, $tbl);
     }
     $result .= $tbl;
   }