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

Remove unused "last" variable from private_fl_utf_file_write_until().

level_0/f_utf/c/private-utf_combining.c
level_1/fl_utf_file/c/private-utf_file.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 73fc93c7f1e32fa03bb25a4457592acce88318b8..66ece3b9fb18ca69a5f7c2dff9c6300dfec6c956 100644 (file)
@@ -82,7 +82,6 @@ extern "C" {
       write_size = write_max;
     }
 
-    f_number_unsigned_t last = 0;
     f_number_unsigned_t used = 0;
 
     ssize_t size_write = 0;
@@ -177,7 +176,6 @@ extern "C" {
       }
 
       *written += i;
-      last += used;
 
       if (*written + write_size > write_max) {
         write_size = write_max - *written;