~ubuntu-branches/ubuntu/precise/python3.2/precise-proposed

« back to all changes in this revision

Viewing changes to Modules/_datetimemodule.c

  • Committer: Package Import Robot
  • Author(s): Matthias Klose
  • Date: 2012-03-09 18:40:39 UTC
  • mfrom: (30.1.2 sid)
  • Revision ID: package-import@ubuntu.com-20120309184039-j3yk2emxr1plyo21
Tags: 3.2.3~rc1-1
* Python 3.2.3 release candidate 1.
* Update to 20120309 from the 3.2 branch.
* Fix libpython.a symlink. Closes: #660146.
* Build-depend on xauth.
* Run the gdb tests for the debug build only.

Show diffs side-by-side

added added

removed removed

Lines of Context:
2784
2784
    register unsigned char *p;
2785
2785
    register Py_hash_t x;
2786
2786
 
 
2787
    assert(_Py_HashSecret_Initialized);
2787
2788
    p = (unsigned char *) data;
2788
 
    x = *p << 7;
 
2789
    x = _Py_HashSecret.prefix;
 
2790
    x ^= *p << 7;
2789
2791
    while (--len >= 0)
2790
2792
        x = (1000003*x) ^ *p++;
2791
2793
    x ^= len;
 
2794
    x ^= _Py_HashSecret.suffix;
2792
2795
    if (x == -1)
2793
2796
        x = -2;
2794
2797