summaryrefslogtreecommitdiff
path: root/src/drivers/Unix/Fl_Unix_System_Driver.cxx
diff options
context:
space:
mode:
authorMatthias Melcher <github@matthiasm.com>2024-01-22 21:05:02 +0100
committerMatthias Melcher <github@matthiasm.com>2024-01-22 21:06:04 +0100
commit667adac6ddbbf26c8098321fe017e1e0d4b0f3a9 (patch)
treecaad0f8bdbace92acffcd58f9c3aa0ebc972ac1f /src/drivers/Unix/Fl_Unix_System_Driver.cxx
parent7b01f0b39fc08c26af00eceddcd0ee6998d50504 (diff)
Fix warning.
Diffstat (limited to 'src/drivers/Unix/Fl_Unix_System_Driver.cxx')
-rw-r--r--src/drivers/Unix/Fl_Unix_System_Driver.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/drivers/Unix/Fl_Unix_System_Driver.cxx b/src/drivers/Unix/Fl_Unix_System_Driver.cxx
index 9ec56b9b3..9a5922d5d 100644
--- a/src/drivers/Unix/Fl_Unix_System_Driver.cxx
+++ b/src/drivers/Unix/Fl_Unix_System_Driver.cxx
@@ -544,7 +544,7 @@ char *Fl_Unix_System_Driver::preference_user_rootnode(
prefs_path_14.append('/');
if (prefs_path_14.find("~/")==0) // starts with "~"
prefs_path_14.replace(0, 1, home_path);
- size_t h_env = prefs_path_14.find("${HOME}");
+ int h_env = prefs_path_14.find("${HOME}");
if (h_env!=prefs_path_14.npos)
prefs_path_14.replace(h_env, 7, home_path);
h_env = prefs_path_14.find("$HOME/");