tamp 2.2.1__tar.gz → 2.2.2__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (29) hide show
  1. {tamp-2.2.1 → tamp-2.2.2}/PKG-INFO +1 -1
  2. {tamp-2.2.1 → tamp-2.2.2}/pyproject.toml +2 -2
  3. {tamp-2.2.1 → tamp-2.2.2}/tamp/__init__.py +1 -1
  4. {tamp-2.2.1 → tamp-2.2.2}/tamp/_c_src/tamp/compressor.c +4 -2
  5. {tamp-2.2.1 → tamp-2.2.2}/LICENSE +0 -0
  6. {tamp-2.2.1 → tamp-2.2.2}/README.md +0 -0
  7. {tamp-2.2.1 → tamp-2.2.2}/build.py +0 -0
  8. {tamp-2.2.1 → tamp-2.2.2}/tamp/__init__.pyi +0 -0
  9. {tamp-2.2.1 → tamp-2.2.2}/tamp/__main__.py +0 -0
  10. {tamp-2.2.1 → tamp-2.2.2}/tamp/_c_build_dictionary.pyx +0 -0
  11. {tamp-2.2.1 → tamp-2.2.2}/tamp/_c_common.pxd +0 -0
  12. {tamp-2.2.1 → tamp-2.2.2}/tamp/_c_common.pyx +0 -0
  13. {tamp-2.2.1 → tamp-2.2.2}/tamp/_c_compressor.pyx +0 -0
  14. {tamp-2.2.1 → tamp-2.2.2}/tamp/_c_decompressor.pyx +0 -0
  15. {tamp-2.2.1 → tamp-2.2.2}/tamp/_c_src/tamp/common.c +0 -0
  16. {tamp-2.2.1 → tamp-2.2.2}/tamp/_c_src/tamp/common.h +0 -0
  17. {tamp-2.2.1 → tamp-2.2.2}/tamp/_c_src/tamp/compressor.h +0 -0
  18. {tamp-2.2.1 → tamp-2.2.2}/tamp/_c_src/tamp/compressor_find_match_desktop.c +0 -0
  19. {tamp-2.2.1 → tamp-2.2.2}/tamp/_c_src/tamp/decompressor.c +0 -0
  20. {tamp-2.2.1 → tamp-2.2.2}/tamp/_c_src/tamp/decompressor.h +0 -0
  21. {tamp-2.2.1 → tamp-2.2.2}/tamp/cli/__init__.py +0 -0
  22. {tamp-2.2.1 → tamp-2.2.2}/tamp/cli/build_dictionary.py +0 -0
  23. {tamp-2.2.1 → tamp-2.2.2}/tamp/cli/main.py +0 -0
  24. {tamp-2.2.1 → tamp-2.2.2}/tamp/compressor.py +0 -0
  25. {tamp-2.2.1 → tamp-2.2.2}/tamp/compressor_viper.py +0 -0
  26. {tamp-2.2.1 → tamp-2.2.2}/tamp/ctamp.pxd +0 -0
  27. {tamp-2.2.1 → tamp-2.2.2}/tamp/decompressor.py +0 -0
  28. {tamp-2.2.1 → tamp-2.2.2}/tamp/decompressor_viper.py +0 -0
  29. {tamp-2.2.1 → tamp-2.2.2}/tamp/py.typed +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: tamp
3
- Version: 2.2.1
3
+ Version: 2.2.2
4
4
  Summary:
5
5
  Home-page: https://github.com/BrianPugh/tamp
6
6
  License: Apache-2.0
@@ -9,7 +9,7 @@ style = "semver"
9
9
 
10
10
  [tool.poetry]
11
11
  name = "tamp"
12
- version = "2.2.1" # Do not change, let poetry-dynamic-versioning handle it.
12
+ version = "2.2.2" # Do not change, let poetry-dynamic-versioning handle it.
13
13
  homepage = "https://github.com/BrianPugh/tamp"
14
14
  repository = "https://github.com/BrianPugh/tamp"
15
15
  license = "Apache-2.0"
@@ -44,7 +44,7 @@ cli = ["cyclopts", "rich"]
44
44
  [tool.poetry.group.docs.dependencies]
45
45
  sphinx = ">=4.5.0"
46
46
  sphinx_rtd_theme = ">=3.0.0"
47
- gitpython = ">=3.1.31"
47
+ gitpython = ">=3.1.49"
48
48
  sphinx-copybutton = ">=0.5.2"
49
49
  myst-parser = {extras = ["linkify"], version = "^3.0.1"}
50
50
 
@@ -1,4 +1,4 @@
1
- __version__ = "2.2.1"
1
+ __version__ = "2.2.2"
2
2
 
3
3
 
4
4
  class ExcessBitsError(Exception):
@@ -181,8 +181,10 @@ TAMP_OPTIMIZE_SIZE tamp_res tamp_compressor_init(TampCompressor* compressor, con
181
181
  #endif
182
182
  };
183
183
  if (!conf) conf = &conf_default;
184
- if (conf->window < 8 || conf->window > 15) return TAMP_INVALID_CONF;
185
- if (conf->literal < 5 || conf->literal > 8) return TAMP_INVALID_CONF;
184
+ uint8_t window_bits = conf->window;
185
+ uint8_t literal_bits = conf->literal;
186
+ if (window_bits < 8 || window_bits > 15) return TAMP_INVALID_CONF;
187
+ if (literal_bits < 5 || literal_bits > 8) return TAMP_INVALID_CONF;
186
188
  if (conf->append && (!conf->dictionary_reset || conf->use_custom_dictionary)) return TAMP_INVALID_CONF;
187
189
  #if !TAMP_EXTENDED_COMPRESS
188
190
  if (conf->extended) return TAMP_INVALID_CONF; // Extended requested but not compiled in
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes