The unified diff between revisions [d1a2aa71..] and [9b06d7a6..] is displayed below. It can also be downloaded as a raw diff.

This diff has been restricted to the following files: 'tokens.hh'

#
#
# patch "tokens.hh"
#  from [82fa198956699b46f811dc957ac4e6d4b5e81cdc]
#    to [ae9d9d87c06dddb9997b1fb4869b4c296c437c82]
#
============================================================
--- tokens.hh	82fa198956699b46f811dc957ac4e6d4b5e81cdc
+++ tokens.hh	ae9d9d87c06dddb9997b1fb4869b4c296c437c82
@@ -39,11 +39,11 @@ class Tokens {
         }

         token_t add(const T &add) {
-            T our_copy = add;
             token_t tid;

-            tid = token_to_id[our_copy];
+            tid = token_to_id[add];
             if (tid == 0) {
+                T our_copy = add;
                 tid = token_to_id[our_copy] = ++last_id;
                 id_to_token[tid] = our_copy;
             }