Commits

Taavi Burns committed ddf2df1

Fixes the error sense return from pthread_key_create.

  • Participants
  • Parent commits 6d6c66e
  • Branches stm-osx

Comments (0)

Files changed (1)

File rpython/translator/c/node.py

     def startupcode(self):
         if self.is_thread_local():
             return [
-                "if (!pthread_key_create(&%s_tls_key, NULL)) {" % self.name,
+                "if (pthread_key_create(&%s_tls_key, NULL)) {" % self.name,
                 '    error = "failed to create pthread TLS key";',
                 "}",
             ]