godot/drivers
Hein-Pieter van Braam b696beea65 Correct hash behavior for floating point numbers
This fixes HashMap where a key or part of a key is a floating point
number. To fix this the following has been done:

* HashMap now takes an extra template argument Comparator. This class
gets used to compare keys. The default Comperator now works correctly
for common types and floating point numbets.

* Variant implements ::hash_compare() now. This function implements
nan-safe comparison for all types with components that contain floating
point numbers.

* Variant now has a VariantComparator which uses Variant::hash_compare()
safely compare floating point components of variant's types.

* The hash functions for floating point numbers will now normalize NaN
values so that all floating point numbers that are NaN hash to the same
value.

C++ module writers that want to use HashMap internally in their modules
can now also safeguard against this crash by defining their on
Comperator class that safely compares their types.

GDScript users, or writers of modules that don't use HashMap internally
in their modules don't need to do anything.

This fixes #7354 and fixes #6947.
2017-02-16 18:44:29 +01:00
..
alsa Adapt platforms to AudioServer refactoring 2017-01-16 19:19:45 +01:00
convex_decomp Style: Fix statements ending with ';;' 2017-01-16 08:49:52 +01:00
gl_context Move glad files to thirdparty dir 2017-01-06 22:42:19 +01:00
gles2 Correct hash behavior for floating point numbers 2017-02-16 18:44:29 +01:00
gles3 Correct hash behavior for floating point numbers 2017-02-16 18:44:29 +01:00
png Style: Fix whole-line commented code 2017-01-14 14:52:23 +01:00
pulseaudio WIP new AudioServer, with buses, effects, etc. 2017-01-21 19:01:00 -03:00
rtaudio Adapt platforms to AudioServer refactoring 2017-01-16 19:19:45 +01:00
unix Merge pull request #7581 from Faless/v6_wild_bind 2017-02-12 23:31:40 +01:00
windows Style: Fix statements ending with ';;' 2017-01-16 08:49:52 +01:00
xaudio2 Adapt platforms to AudioServer refactoring 2017-01-16 19:19:45 +01:00
zlib style: Fix PEP8 whitespace issues in Python files 2016-11-01 00:35:16 +01:00
register_driver_types.cpp Welcome in 2017, dear changelog reader! 2017-01-01 22:03:33 +01:00
register_driver_types.h Welcome in 2017, dear changelog reader! 2017-01-01 22:03:33 +01:00
SCsub Merge remote-tracking branch 'origin/gles3' into gles3-on-master 2017-01-02 21:52:26 +01:00