Permalink
Browse files

fixed litecoin_scrypt build on linux

  • Loading branch information...
1 parent 2c02767 commit 275d46458112ac25dca84406e5a0745e9e4fa95c @forrestv forrestv committed Jan 14, 2012
Showing with 3 additions and 7 deletions.
  1. +3 −7 litecoin_scrypt/scryptmodule.c
@@ -1,22 +1,18 @@
-//#include "stdint.h"
-
-typedef char uint8_t;
-
#include <Python.h>
//#include "scrypt.h"
static PyObject *scrypt_getpowhash(PyObject *self, PyObject *args)
{
- uint8_t *output;
+ char *output;
PyObject *value;
PyStringObject *input;
if (!PyArg_ParseTuple(args, "S", &input))
return NULL;
Py_INCREF(input);
output = PyMem_Malloc(32);
- scrypt_1024_1_1_256((uint8_t *)PyString_AsString((PyObject*) input), output);
+ scrypt_1024_1_1_256((char *)PyString_AsString((PyObject*) input), output);
Py_DECREF(input);
value = Py_BuildValue("s#", output, 32);
PyMem_Free(output);
@@ -30,4 +26,4 @@ static PyMethodDef ScryptMethods[] = {
PyMODINIT_FUNC initltc_scrypt(void) {
(void) Py_InitModule("ltc_scrypt", ScryptMethods);
-}
+}

0 comments on commit 275d464

Please sign in to comment.