Browse Source

notify: Fix compile error on Android

rdb 1 year ago
parent
commit
fa25c51d30
1 changed files with 3 additions and 3 deletions
  1. 3 3
      dtool/src/prc/notify.cxx

+ 3 - 3
dtool/src/prc/notify.cxx

@@ -467,12 +467,12 @@ config_initialized() {
 
   Notify *ptr = Notify::ptr();
 
-  for (int i = 0; i <= NS_fatal; ++i) {
+  for (int severity = 0; severity <= NS_fatal; ++severity) {
     int priority = ANDROID_LOG_UNKNOWN;
     if (severity != NS_unspecified) {
-      priority = i + 1;
+      priority = severity + 1;
     }
-    ptr->_log_streams[i] = new AndroidLogStream(priority);
+    ptr->_log_streams[severity] = new AndroidLogStream(priority);
   }
 
 #elif defined(__EMSCRIPTEN__)