Brad Bishop | e42b3e3 | 2020-01-15 22:08:42 -0500 | [diff] [blame] | 1 | From c86c524f951f6e973473bfee76fd5366368b2cbc Mon Sep 17 00:00:00 2001 |
| 2 | From: Khem Raj <raj.khem@gmail.com> |
| 3 | Date: Wed, 25 Dec 2019 09:32:41 -0800 |
| 4 | Subject: [PATCH] Fix narrowing conversion error |
| 5 | |
| 6 | xplc/moduleloader.cc: In static member function 'static Module* Module::loadModule(const char*)': xplc/moduleloader.cc:67:14: error: narrowing conversion of '-1' from 'int' to 'unsigned int' [-Wnarrowing] 67 | case (int)-1: | ^ |
| 7 | |
| 8 | Upstream-Status: Pending |
| 9 | Signed-off-by: Khem Raj <raj.khem@gmail.com> |
| 10 | --- |
| 11 | xplc/moduleloader.cc | 2 +- |
| 12 | 1 file changed, 1 insertion(+), 1 deletion(-) |
| 13 | |
| 14 | diff --git a/xplc/moduleloader.cc b/xplc/moduleloader.cc |
| 15 | index 02dd9a4..c53f5d2 100644 |
| 16 | --- a/xplc/moduleloader.cc |
| 17 | +++ b/xplc/moduleloader.cc |
| 18 | @@ -62,7 +62,7 @@ Module* Module::loadModule(const char* modulename) { |
| 19 | return NULL; |
| 20 | } |
| 21 | |
| 22 | - switch(moduleinfo->version_major) { |
| 23 | + switch((int)moduleinfo->version_major) { |
| 24 | #ifdef UNSTABLE |
| 25 | case -1: |
| 26 | /* nothing to do */ |
| 27 | -- |
| 28 | 2.24.1 |
| 29 | |