Skip to content

Commit

Permalink
Fix windows compilation
Browse files Browse the repository at this point in the history
  • Loading branch information
rjonaitis committed Feb 25, 2024
1 parent 281c787 commit 38ab764
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/comms/USB/USBEntry.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ using namespace lime;

#ifdef __unix__
libusb_context* USBEntry::ctx{ nullptr };
uint USBEntry::ctxRefCount{ 0 };
uint32_t USBEntry::ctxRefCount{ 0 };
#endif

USBEntry::USBEntry(const std::string& name, const std::set<VidPid>& deviceIds)
Expand Down
4 changes: 2 additions & 2 deletions src/fftviewer_wxgui/fftviewer_frFFTviewer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -429,7 +429,7 @@ void fftviewer_frFFTviewer::StreamingLoop(

// TODO: check if actually needed
/*std::vector<std::vector<complex32f_t>> txPattern(2);
for (uint i = 0; i < txPattern.size(); ++i)
for (uint32_t i = 0; i < txPattern.size(); ++i)
{
txPattern[i].resize(fftSize);
float srcI[8]; // = {1.0, 0.0, -1.0, 0.0};
Expand Down Expand Up @@ -503,7 +503,7 @@ void fftviewer_frFFTviewer::StreamingLoop(
uint32_t samplesToCopy = min(samplesPopped, samplesToCapture);
if (samplesToCopy <= 0)
break;
for (uint i = 0; i < samplesToCopy; ++i)
for (uint32_t i = 0; i < samplesToCopy; ++i)
{
captureBuffer[ch][samplesCaptured + i].i = buffers[ch][i].i * 32767;
captureBuffer[ch][samplesCaptured + i].q = buffers[ch][i].q * 32767;
Expand Down

0 comments on commit 38ab764

Please sign in to comment.