]> git.ipfire.org Git - thirdparty/xz.git/commitdiff
liblzma: Minor comment edits.
authorLasse Collin <lasse.collin@tukaani.org>
Wed, 13 Mar 2024 19:30:18 +0000 (21:30 +0200)
committerLasse Collin <lasse.collin@tukaani.org>
Tue, 21 May 2024 21:12:07 +0000 (00:12 +0300)
(cherry picked from commit 3217b82b3ec023bf8338249134a076bea0ea30ec)

src/liblzma/common/string_conversion.c
src/liblzma/delta/delta_decoder.c

index 8d6b3fb9b1bd1e43bf0da68730d1a06f67897c2e..92ad4a07bbe60c14c052fca3db1b9b857f25c07d 100644 (file)
@@ -218,8 +218,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 {
index 3953bc4aaa28c9f65f64b216d1aba5f45ba552ad..be904e205353f933b1eeeeb51ad51d8f8efb4c36 100644 (file)
@@ -26,6 +26,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