Răsfoiți Sursa

Make sure event const enums are using unsigned ints for the event type numeric value since StringHash is an unsigned int type.

Shaddock Heath 9 ani în urmă
părinte
comite
4e0a44fb82
1 a modificat fișierele cu 1 adăugiri și 1 ștergeri
  1. 1 1
      Source/ToolCore/JSBind/JSBTypeScript.cpp

+ 1 - 1
Source/ToolCore/JSBind/JSBTypeScript.cpp

@@ -381,7 +381,7 @@ void JSBTypeScript::ExportModuleEvents(JSBModule* module)
             source += "    export const enum NativeEventType {\n";
         }
 
-        source += ToString("        %s = %d", event->GetEventName().CString(), event->GetEventHash());
+        source += ToString("        %s = %u", event->GetEventName().CString(), event->GetEventHash());
 
         if (i == events.Size() -1) {
             source += "\n";