Follow @Openwall on Twitter for new release announcements and other news
[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-ID: <CABob6ipjSOea30xxhURcDXFPs7R8UvnLTTho6n+69zpzB99GwQ@mail.gmail.com>
Date: Sat, 11 Aug 2012 23:39:43 +0200
From: Lukas Odzioba <lukas.odzioba@...il.com>
To: john-dev@...ts.openwall.com
Subject: sha512crypt-opencl warnings

On 32bit OS I am getting this:
opencl_cryptsha512_fmt.c: In function 'find_best_gws':
opencl_cryptsha512_fmt.c:419: warning: integer constant is too large
for 'unsigned long' type
opencl_cryptsha512_fmt.c:424: warning: integer constant is too large
for 'unsigned long' type

Affected lines:
if (run_time > 10000000000UL) {
if (run_time > min_time * 10 || run_time > 10000000000UL)

run_time type is cl_ulong;
sizeof cl_ulong = 8

s/10000000000UL/10000000000ULL/ fixes the problem.

Lukas

Powered by blists - more mailing lists

Confused about mailing lists and their use? Read about mailing lists on Wikipedia and check out these guidelines on proper formatting of your messages.