about summary refs log tree commit diff
path: root/converter/other/fiasco/lib/arith.c
diff options
context:
space:
mode:
authorgiraffedata <giraffedata@9d0c8265-081b-0410-96cb-a4ca84ce46f8>2019-12-30 16:08:15 +0000
committergiraffedata <giraffedata@9d0c8265-081b-0410-96cb-a4ca84ce46f8>2019-12-30 16:08:15 +0000
commit36b17dd0c515ebf7a5916575ead970439295fc46 (patch)
tree359ef6454350f794339ee9c73a20dab620d389a2 /converter/other/fiasco/lib/arith.c
parent4b896dbdd5d76d1457f67b04c0903d4210cea874 (diff)
downloadnetpbm-mirror-36b17dd0c515ebf7a5916575ead970439295fc46.tar.gz
netpbm-mirror-36b17dd0c515ebf7a5916575ead970439295fc46.tar.xz
netpbm-mirror-36b17dd0c515ebf7a5916575ead970439295fc46.zip
Fix typos in comments, whitespace
git-svn-id: http://svn.code.sf.net/p/netpbm/code/trunk@3729 9d0c8265-081b-0410-96cb-a4ca84ce46f8
Diffstat (limited to 'converter/other/fiasco/lib/arith.c')
-rw-r--r--converter/other/fiasco/lib/arith.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/converter/other/fiasco/lib/arith.c b/converter/other/fiasco/lib/arith.c
index 4b92a2f7..e61e753e 100644
--- a/converter/other/fiasco/lib/arith.c
+++ b/converter/other/fiasco/lib/arith.c
@@ -354,7 +354,7 @@ decode_symbol (arith_t *arith, model_t *model)
  *  Decode the next symbol - the state of the arithmetic decoder
  *  is given in 'arith'. Read refinement bits from the stream 'input'
  *  and use the given probability 'model'. Update the probability model after
- *  deconding the symbol (if necessary also rescale the symbol counts).
+ *  decoding the symbol (if necessary also rescale the symbol counts).
  *
  *  Return value:
  *	decoded symbol
@@ -398,7 +398,7 @@ decode_symbol (arith_t *arith, model_t *model)
       power = 1;			/* multiplicator */
       index = 0;			/* address of prob. model */
 
-      for (i = 0; i < model->order; i++) /* genarate a m-nary number */
+      for (i = 0; i < model->order; i++) /* generate a m-nary number */
       {
 	 index += model->context[i] * power;
 	 power *= model->symbols;