Browse Source

Warnings + documentation cleanups.

tags/2021-05-28
jules 12 years ago
parent
commit
92e3c452a0
3 changed files with 3 additions and 3 deletions
  1. +1
    -1
      modules/juce_core/native/juce_posix_SharedCode.h
  2. +1
    -1
      modules/juce_core/network/juce_Socket.cpp
  3. +1
    -1
      modules/juce_core/network/juce_URL.h

+ 1
- 1
modules/juce_core/native/juce_posix_SharedCode.h View File

@@ -543,7 +543,7 @@ void MemoryMappedFile::openInternal (const File& file, AccessMode mode)
MemoryMappedFile::~MemoryMappedFile() MemoryMappedFile::~MemoryMappedFile()
{ {
if (address != nullptr) if (address != nullptr)
munmap (address, range.getLength());
munmap (address, (size_t) range.getLength());
if (fileHandle != 0) if (fileHandle != 0)
close (fileHandle); close (fileHandle);


+ 1
- 1
modules/juce_core/network/juce_Socket.cpp View File

@@ -150,7 +150,7 @@ namespace SocketHelpers
fd_set* const pwset = forReading ? nullptr : &wset; fd_set* const pwset = forReading ? nullptr : &wset;
#if JUCE_WINDOWS #if JUCE_WINDOWS
if (select (handle + 1, prset, pwset, 0, timeoutp) < 0)
if (select ((int) handle + 1, prset, pwset, 0, timeoutp) < 0)
return -1; return -1;
#else #else
{ {


+ 1
- 1
modules/juce_core/network/juce_URL.h View File

@@ -150,7 +150,7 @@ public:
/** Returns an array of the names of all the URL's parameters. /** Returns an array of the names of all the URL's parameters.
E.g. for the url "www.fish.com?type=haddock&amount=some+fish", this array would E.g. for the url "www.fish.com?type=haddock&amount=some+fish", this array would
contain two items: "type" and "haddock".
contain two items: "type" and "amount".
You can call getParameterValues() to get the corresponding value of each You can call getParameterValues() to get the corresponding value of each
parameter. Note that the list can contain multiple parameters with the same name. parameter. Note that the list can contain multiple parameters with the same name.


Loading…
Cancel
Save