"Fossies" - the Fresh Open Source Software Archive

Member "qt-everywhere-src-6.3.1/qtwebengine/src/3rdparty/chromium/third_party/tflite-support/patches/0001-Remove-signed-comparison-in-frame_buffer.h.patch" (8 Jun 2022, 1100 Bytes) of package /linux/misc/qt-everywhere-src-6.3.1.tar.xz:


As a special service "Fossies" has tried to format the requested source page into HTML format using (guessed) Diff source code syntax highlighting (style: standard) with prefixed line numbers. Alternatively you can here view or download the uninterpreted source code file.

    1 From 368b317061ba7deb1f42c52c5443c261bb6c03ea Mon Sep 17 00:00:00 2001
    2 From: Daniel Rubery <drubery@chromium.org>
    3 Date: Thu, 6 May 2021 11:40:37 -0700
    4 Subject: [PATCH] Remove signed comparison in frame_buffer.h
    5 
    6 ---
    7  .../tensorflow_lite_support/cc/task/vision/core/frame_buffer.h  | 2 +-
    8  1 file changed, 1 insertion(+), 1 deletion(-)
    9 
   10 diff --git a/third_party/tflite-support/src/tensorflow_lite_support/cc/task/vision/core/frame_buffer.h b/third_party/tflite-support/src/tensorflow_lite_support/cc/task/vision/core/frame_buffer.h
   11 index 22f63fc34d36..42ac080c4749 100644
   12 --- a/third_party/tflite-support/src/tensorflow_lite_support/cc/task/vision/core/frame_buffer.h
   13 +++ b/third_party/tflite-support/src/tensorflow_lite_support/cc/task/vision/core/frame_buffer.h
   14 @@ -246,7 +246,7 @@ class FrameBuffer {
   15  
   16    // Returns plane indexed by the input `index`.
   17    const Plane plane(int index) const {
   18 -    if (index > -1 && index < planes_.size()) {
   19 +    if (index > -1 && static_cast<size_t>(index) < planes_.size()) {
   20        return planes_[index];
   21      }
   22      return {};
   23 -- 
   24 2.31.1.607.g51e8a6a459-goog
   25