Repository: godot
Issue: Implicit conversion between int types which result changing value
Labels: bug,topic:core

**Godot version:**
3.2 beta 1

**OS/device including version:**
Ubuntu 19.10

**Issue description:**

This should be easy to fix

```
core/class_db.cpp:440:29: runtime error: implicit conversion from type 'int' of value -1 (32-bit, signed) to type 'uint64_t' (aka 'unsigned long') changed the value to 18446744073709551615 (64-bit, unsigned)
core/command_queue_mt.h:331:48: runtime error: implicit conversion from type 'int' of value -8 (32-bit, signed) to type 'unsigned long' changed the value to 18446744073709551608 (64-bit, unsigned)
core/command_queue_mt.h:373:41: runtime error: implicit conversion from type 'int' of value -8 (32-bit, signed) to type 'unsigned long' changed the value to 18446744073709551608 (64-bit, unsigned)
core/command_queue_mt.h:431:42: runtime error: implicit conversion from type 'int' of value -2 (32-bit, signed) to type 'unsigned int' changed the value to 4294967294 (32-bit, unsigned)
drivers/gles3/rasterizer_storage_gles3.cpp:627:14: runtime error: implicit conversion from type 'int' of value -2 (32-bit, signed) to type 'unsigned int' changed the value to 4294967294 (32-bit, unsigned)
drivers/gles3/shader_gles3.cpp:535:15: runtime error: implicit conversion from type 'GLuint' (aka 'unsigned int') of value 4294967295 (32-bit, unsigned) to type 'GLint' (aka 'int') changed the value to -1 (32-bit, signed)
drivers/gles3/shader_gles3.h:389:38: runtime error: implicit conversion from type 'int' of value -5 (32-bit, signed) to type 'unsigned int' changed the value to 4294967291 (32-bit, unsigned)
platform/x11/os_x11.cpp:1807:28: runtime error: implicit conversion from type 'int' of value -2 (32-bit, signed) to type 'unsigned int' changed the value to 4294967294 (32-bit, unsigned)
platform/x11/os_x11.cpp:1808:28: runtime error: implicit conversion from type 'int' of value -5 (32-bit, signed) to type 'unsigned int' changed the value to 4294967291 (32-bit, unsigned)
```
https://github.com/godotengine/godot/blob/73323a2838f4978b1f91d7a941ac40ee17df2d34/core/class_db.cpp#L440
https://github.com/godotengine/godot/blob/bdf0037a9c78c1a34ce9a00e8544e5aed85ad39b/core/command_queue_mt.h#L331
https://github.com/godotengine/godot/blob/bdf0037a9c78c1a34ce9a00e8544e5aed85ad39b/core/command_queue_mt.h#L373
https://github.com/godotengine/godot/blob/bdf0037a9c78c1a34ce9a00e8544e5aed85ad39b/core/command_queue_mt.h#L431
https://github.com/godotengine/godot/blob/bdf0037a9c78c1a34ce9a00e8544e5aed85ad39b/drivers/gles3/rasterizer_storage_gles3.cpp#L627
https://github.com/godotengine/godot/blob/bdf0037a9c78c1a34ce9a00e8544e5aed85ad39b/drivers/gles3/shader_gles3.cpp#L535
https://github.com/godotengine/godot/blob/bdf0037a9c78c1a34ce9a00e8544e5aed85ad39b/drivers/gles3/shader_gles3.h#L389
https://github.com/godotengine/godot/blob/bdf0037a9c78c1a34ce9a00e8544e5aed85ad39b/platform/x11/os_x11.cpp#L1807-L1808








**Steps to reproduce:**
To get this error try to compile Godot with ubsan sanitizer(GCC or LLVM) or compile Godot from this branch(find more errors but this needs LLVM 9 or GCC 9) - https://github.com/qarmin/godot/tree/bb

1. Just create  and open empty  project