]> Kevux Git Server - fll/commitdiff
Bugfix: Problems exposed by clang-13.
authorKevin Day <thekevinday@gmail.com>
Wed, 6 Sep 2023 05:45:46 +0000 (00:45 -0500)
committerKevin Day <thekevinday@gmail.com>
Wed, 6 Sep 2023 05:45:46 +0000 (00:45 -0500)
The Vedic Extensions Unicode checks are out of order.

Remove unused "last" variable from private_fl_utf_file_write_until().

Add missing "return" keyword in Featureless Make.

level_0/f_utf/c/private-utf_combining.c
level_1/fl_utf_file/c/private-utf_file.c
level_3/fake/c/private-build-skeleton.c

index f851bc5c57f4e755140fa24c3a862e5190f1ad02..d91904189cbcb93f3ff2480873d654621658763c 100644 (file)
@@ -668,8 +668,8 @@ extern "C" {
           return F_true;
         }
 
-        // Vedic Extensions: U+1CD4 to U+1CD2.
-        if (sequence >= 0xe1b39400 && sequence <= 0xe1b39200) {
+        // Vedic Extensions: U+1CD2 to U+1CD4.
+        if (sequence >= 0xe1b39200 && sequence <= 0xe1b39400) {
           return F_true;
         }
 
@@ -688,8 +688,8 @@ extern "C" {
           return F_true;
         }
 
-        // Vedic Extensions: U+1DC0 to U+1CE8.
-        if (sequence >= 0xe1b78000 && sequence <= 0xe1b3a800) {
+        // Vedic Extensions: U+1CE8 to U+1DC0.
+        if (sequence >= 0xe1b3a800 && sequence <= 0xe1b78000) {
           return F_true;
         }
 
index 6ca3592c98dc547ca8c7738a61252cbca59de731..6e05098adfc832f5b6763a6b9f3ebace8b654fd2 100644 (file)
@@ -82,7 +82,6 @@ extern "C" {
       write_size = write_max;
     }
 
-    f_array_length_t last = 0;
     f_array_length_t used = 0;
 
     ssize_t size_write = 0;
@@ -179,7 +178,6 @@ extern "C" {
       }
 
       *written += i;
-      last += used;
 
       if (*written + write_size > write_max) {
         write_size = write_max - *written;
index 524ba6afb473ecb4d86b42213a3d7e3cbb77bd7f..0bddef4ad84523a9e6475d69d85c333264677d12 100644 (file)
@@ -12,7 +12,7 @@ extern "C" {
   void fake_build_skeleton(fake_data_t * const data, fake_build_data_t * const data_build, const mode_t mode, const f_string_static_t file_stage, f_status_t * const status) {
 
     if (*status == F_child) return;
-    if (F_status_is_error(*status) || f_file_exists(file_stage, F_true) == F_true);
+    if (F_status_is_error(*status) || f_file_exists(file_stage, F_true) == F_true) return;
 
     f_string_static_t path_headers = f_string_static_t_initialize;
     path_headers.used = data->path_build_includes.used + data_build->setting.path_headers.used;