diff options
author | Lasse Collin <lasse.collin@tukaani.org> | 2024-03-13 21:30:18 +0200 |
---|---|---|
committer | Lasse Collin <lasse.collin@tukaani.org> | 2024-03-15 18:03:47 +0200 |
commit | 3217b82b3ec023bf8338249134a076bea0ea30ec (patch) | |
tree | 5890025a3c372d64c95b0863f3e6e631bf0dfaee /src | |
parent | liblzma: Fix building with NVHPC (NVIDIA HPC SDK). (diff) | |
download | xz-3217b82b3ec023bf8338249134a076bea0ea30ec.tar.xz |
liblzma: Minor comment edits.
Diffstat (limited to 'src')
-rw-r--r-- | src/liblzma/common/string_conversion.c | 4 | ||||
-rw-r--r-- | src/liblzma/delta/delta_decoder.c | 2 |
2 files changed, 4 insertions, 2 deletions
diff --git a/src/liblzma/common/string_conversion.c b/src/liblzma/common/string_conversion.c index 370857f0..ae13ac46 100644 --- a/src/liblzma/common/string_conversion.c +++ b/src/liblzma/common/string_conversion.c @@ -217,8 +217,8 @@ typedef struct { uint16_t offset; union { -// NVHPC has problems with unions that contain pointers that are not the first -// members + // NVHPC has problems with unions that contain pointers that + // are not the first members, so keep "map" at the top. const name_value_map *map; struct { diff --git a/src/liblzma/delta/delta_decoder.c b/src/liblzma/delta/delta_decoder.c index 142fe6de..9f0d49ca 100644 --- a/src/liblzma/delta/delta_decoder.c +++ b/src/liblzma/delta/delta_decoder.c @@ -25,6 +25,8 @@ decode_buffer(lzma_delta_coder *coder, uint8_t *buffer, size_t size) } +// For an unknown reason NVIDIA HPC Compiler needs this pragma +// to produce working code. #ifdef __NVCOMPILER # pragma routine novector #endif |