From 32e256c12ac703bbfcaad6c7157148a20e10a633 Mon Sep 17 00:00:00 2001 From: Lasse Collin Date: Wed, 13 Mar 2024 21:30:18 +0200 Subject: [PATCH] liblzma: Minor comment edits. (cherry picked from commit 3217b82b3ec023bf8338249134a076bea0ea30ec) --- src/liblzma/common/string_conversion.c | 4 ++-- 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 8d6b3fb9..92ad4a07 100644 --- a/src/liblzma/common/string_conversion.c +++ b/src/liblzma/common/string_conversion.c @@ -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 { diff --git a/src/liblzma/delta/delta_decoder.c b/src/liblzma/delta/delta_decoder.c index 3953bc4a..be904e20 100644 --- a/src/liblzma/delta/delta_decoder.c +++ b/src/liblzma/delta/delta_decoder.c @@ -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