1. 20 Sep, 2022 1 commit
  2. 06 Jan, 2022 1 commit
  3. 29 Apr, 2020 1 commit
  4. 08 Apr, 2020 1 commit
  5. 15 Feb, 2020 1 commit
  6. 14 Feb, 2020 1 commit
  7. 04 Nov, 2019 1 commit
  8. 21 Dec, 2018 1 commit
    • Simon Gene Gottlieb's avatar
      Fix float precision (#649) · abf941b2
      Simon Gene Gottlieb authored
      The issue is that numbers like
      2.01 or 3.01 can not be precisely represented with binary floating point
      numbers.
      
      This replaces all occurrences of 'std::numeric_limits<T>::digits10 + 1' with
      'std::numeric_limits<T>::max_digits10'.
      
      Background:
      Using 'std::numeric_limits<T>::digits10 + 1' is not precise enough.
      Converting a 'float' into a 'string' and back to a 'float' will not always
      produce the original 'float' value. To guarantee that the 'string'
      representation has sufficient precision the value
      'std::numeric_limits<T>::max_digits10' has to be used.
      abf941b2
  9. 14 May, 2018 1 commit
  10. 02 Jan, 2017 1 commit
    • butataatawa's avatar
      Fix sequence sometimes not turning into a map (#450) · f8286100
      butataatawa authored
      Previously, just referencing the next element in the sequence (and so constructing it, as an undefined element) would allow you to skip defining an element without turning the sequence into a map. E.g:
      
      node[0] = "foo"; // sequence of size 1
      node[1]; // sequence of size 1, with an undefined element at 1
      node[2] = "bar"; // FIX: should be map of size 2 (since there's no element at index 1)
      f8286100
  11. 06 Dec, 2016 1 commit
  12. 12 Oct, 2016 1 commit
  13. 18 Jul, 2016 1 commit
    • c0nk's avatar
      Change node_map type from map<ptr,ptr> to vector<pair<ptr,ptr>> (#386) · f0b15cd6
      c0nk authored
      * Change node_map type from map<ptr,ptr> to vector<pair<ptr,ptr>>
      
      Map nodes are now iterated over in document order.
      
      * Change insert_map_pair to always append
      
      Always append in insert_map_pair even if the key is already present.
      This breaks the behavior of force_insert which now always inserts KVs
      even if the key is already present. The first insert for duplicated keys
      now takes precedence for lookups.
      f0b15cd6
  14. 13 Jun, 2016 1 commit
  15. 22 Nov, 2015 1 commit
  16. 08 Jun, 2015 1 commit
    • Jonathan Hamilton's avatar
      Fix some Node::operator[] regressions from 0.5.1 · b426faff
      Jonathan Hamilton authored
      "const Node Node::operator[](const Key& key) const" changed from
      returning new empty node if the key was missing in 0.5.1 to returning
      a shared 'zombie' node in 0.5.2 to resolve a memory leak.
      
      (Specifically 1025f76d was where this
      was introduced)
      
      This caused some regressions where this 'zombie' object threw exceptions
      in some functions where the 'empty' object would not.
      
      This change fixes the Node::as(fallback) method (to return the
      'fallback' instead of throwing an exception) and the
      Node::begin()/Node::end() methods to return default-constructed
      iterators (so begin() == end() in such cases) instead of another
      exception.
      b426faff
  17. 08 Apr, 2015 1 commit
  18. 29 Mar, 2015 1 commit
  19. 21 Feb, 2015 1 commit
  20. 24 Jan, 2015 2 commits
  21. 16 Aug, 2014 1 commit
  22. 26 Mar, 2014 1 commit
  23. 25 Mar, 2014 1 commit
  24. 24 Mar, 2014 2 commits
    • Jesse Beder's avatar
      Disable warning: · 7a68eaaf
      Jesse Beder authored
      warning C4800: forcing value to bool 'true' or 'false' (performance warning)
      
      for the node test, since it really doesn't make any sense in this context. (It's exactly what we intended with the "unspecified bool type".)
      7a68eaaf
    • Jesse Beder's avatar
      Convert node tests to gtest · ad0a3311
      Jesse Beder authored
      ad0a3311
  25. 23 Mar, 2014 1 commit