Code Monkey home page Code Monkey logo

Comments (10)

wiire-a avatar wiire-a commented on August 21, 2024

Before adding the tag I compiled the program with Clang on Mac OS X so I thought everything was fine...

The problem here is that under FreeBSD, CLOCKS_PER_SEC = 128, leading to a division by zero.

Source: http://bugs.vcmi.eu/view.php?id=719

from pixiewps.

fbettag avatar fbettag commented on August 21, 2024

Can you fix it and push another release tag? I'd update the port then to have this fixed as well.

from pixiewps.

wiire-a avatar wiire-a commented on August 21, 2024

I will look later today. I'm not at my compiling station right now.

Thank you for testing and happy new year to you too :)

from pixiewps.

wiire-a avatar wiire-a commented on August 21, 2024

@fbettag
It should be fixed now. I used gettimeofday() from sys/time.h instead of clock() from time.h.

Tested again on Ubuntu 32 bit (GCC), Mac OS X 64 bit (Clang) and Windows 64 bit (with MinGW). No errors or warnings (using -Wall -Wextra).

from pixiewps.

fbettag avatar fbettag commented on August 21, 2024

seems fixed now :) can we get another release? :)

from pixiewps.

fbettag avatar fbettag commented on August 21, 2024

Well the only thing that stands out:
cc -std=c99 -O3 -Wall -Wextra -DDEBUG -o pixiewps pixiewps.c random_r.c crypto/sha256.c crypto/md.c crypto/md_wrap.c
In file included from pixiewps.c:32:
./pixiewps.h:220:13: warning: comparison of integers of different signs: 'char' and 'unsigned int' [-Wsign-compare]
if (*list <= (max_digit + '0')) {
~~~~~ ^ ~~~~~~~~~~~~~~~
1 warning generated.

from pixiewps.

wiire-a avatar wiire-a commented on August 21, 2024

Mind testing again? Possibly with -Wall and -Wextra. If everything's good I'll push another tag.

from pixiewps.

fbettag avatar fbettag commented on August 21, 2024

cc -std=c99 -O3 -Wall -Wextra -DDEBUG -o pixiewps pixiewps.c random_r.c crypto/sha256.c crypto/md.c crypto/md_wrap.c
:)

looks good now

from pixiewps.

wiire-a avatar wiire-a commented on August 21, 2024

Pushed new tag 1.2.2.

Thank you again, much appreciated.

from pixiewps.

fbettag avatar fbettag commented on August 21, 2024

Submitted to FreeBSD https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=205870 :)

No worries, thanks for doing the code, i just package :)

from pixiewps.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.