X-Git-Url: http://cvs.zerfleddert.de/cgi-bin/gitweb.cgi/proxmark3-svn/blobdiff_plain/9f52c9db288de1b5bbff0e4f6da644ad74bddd9b..fa5118e7308c1beebf84f4a6664be7923a6bea04:/client/cmdlf.c?ds=inline diff --git a/client/cmdlf.c b/client/cmdlf.c index 399adb72..6bfbec8d 100644 --- a/client/cmdlf.c +++ b/client/cmdlf.c @@ -171,7 +171,7 @@ int CmdLFCommandRead(const char *Cmd) { if (errors) return usage_lf_cmdread(); // zero and one lengths - c.arg[1] = zero << 16 | one; + c.arg[1] = (uint32_t)(zero << 16 | one); // add frequency 125 or 134 c.arg[2] = useHighFreq; @@ -981,7 +981,7 @@ int CmdVchDemod(const char *Cmd) for (i = 0; i < (GraphTraceLen-2048); i++) { int sum = 0; int j; - for (j = 0; j < arraylen(SyncPattern); j++) { + for (j = 0; j < ARRAYLEN(SyncPattern); j++) { sum += GraphBuffer[i+j]*SyncPattern[j]; } if (sum > bestCorrel) {