# Small bug in src/stream/ngx\_stream\_proxy\_module.c

**URL:** <https://www.ruby-forum.com/t/small-bug-in-src-stream-ngx-stream-proxy-module-c/242510>\
**Category:** NGINX\
**Created:** [June 29, 2015, 3:05pm UTC](https://www.ruby-forum.com/t/small-bug-in-src-stream-ngx-stream-proxy-module-c/242510 "2015-06-29T15:05:58Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![musicdenotation](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/m/ea666f/32.png) [@musicdenotation](https://www.ruby-forum.com/u/musicdenotation)\
**Post date:** [June 29, 2015, 3:05pm UTC](https://www.ruby-forum.com/t/small-bug-in-src-stream-ngx-stream-proxy-module-c/242510/1 "2015-06-29T15:05:58Z")

</div>

(1066) : warning C4244: ‘=’ : conversion from ‘off\_t’ to ‘size\_t’,  
possible  
loss of data

diff line 1066:  
if (size \> (size\_t) limit) {

- 

```
               size = limit;

```

- 

```
               size = (size_t) limit;
          }

```

Posted at Nginx Forum:

> **[Small bug in src/stream/ngx\_stream\_proxy\_module.c](https://forum.nginx.org/read.php?2,259969,259969#msg-259969)**
>
> (1066) : warning C4244: '=' : conversion from 'off\_t' to 'size\_t', possible loss of data diff line 1066: if (size \> (size\_t) limit) { - size = limit; + size = (size\_t) limit; }

---

<div class="post-metadata">

**Author:** ![itpp2012](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/i/f05b48/32.png) [@itpp2012](https://www.ruby-forum.com/u/itpp2012)\
**Post date:** [June 30, 2015, 12:00pm UTC](https://www.ruby-forum.com/t/small-bug-in-src-stream-ngx-stream-proxy-module-c/242510/2 "2015-06-30T12:00:49Z")

</div>

Hello,

> 

What compiler do you have?

–  
Roman A.

---

<div class="post-metadata">

**Author:** ![itpp2012](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/i/f05b48/32.png) [@itpp2012](https://www.ruby-forum.com/u/itpp2012)\
**Post date:** [June 30, 2015, 2:02pm UTC](https://www.ruby-forum.com/t/small-bug-in-src-stream-ngx-stream-proxy-module-c/242510/3 "2015-06-30T14:02:20Z")

</div>

Roman A. Wrote:

---

<div class="post-metadata">

**Author:** ![itpp2012](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/i/f05b48/32.png) [@itpp2012](https://www.ruby-forum.com/u/itpp2012)\
**Post date:** [June 30, 2015, 2:19pm UTC](https://www.ruby-forum.com/t/small-bug-in-src-stream-ngx-stream-proxy-module-c/242510/4 "2015-06-30T14:19:52Z")

</div>

> On 30 Jun 2015, at 15:01, itpp2012 [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid) wrote:
> 
> ## Roman A. Wrote:
> 
> > What compiler do you have?
> 
> A proper one 🙂 vc++

version?

–  
Roman A.

---

<div class="post-metadata">

**Author:** ![itpp2012](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/i/f05b48/32.png) [@itpp2012](https://www.ruby-forum.com/u/itpp2012)\
**Post date:** [July 2, 2015, 9:53am UTC](https://www.ruby-forum.com/t/small-bug-in-src-stream-ngx-stream-proxy-module-c/242510/5 "2015-07-02T09:53:08Z")

</div>

Thanks, we’re planning to commit the fix.

Could you say your name so we could add it to the commit message?

> > > A proper one 🙂 vc++  
> > > [mailman.nginx.org archive](http://mailman.nginx.org/mailman/listinfo/nginx)

–  
Roman A.

---

<div class="post-metadata">

**Author:** ![itpp2012](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/i/f05b48/32.png) [@itpp2012](https://www.ruby-forum.com/u/itpp2012)\
**Post date:** [June 30, 2015, 2:39pm UTC](https://www.ruby-forum.com/t/small-bug-in-src-stream-ngx-stream-proxy-module-c/242510/6 "2015-06-30T14:39:08Z")

</div>

## Roman A. Wrote:

> > On 30 Jun 2015, at 15:01, itpp2012 [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid) wrote:
> > 
> > ## Roman A. Wrote:
> > 
> > > What compiler do you have?
> > 
> > A proper one 🙂 vc++
> 
> version?

2010, 2013, 2015, all the same.

Posted at Nginx Forum:  
[http://forum.nginx.org/read.php?2,259969,259993#msg-259993](http://forum.nginx.org/read.php?2,259969,259993#msg-259993)

---

<div class="post-metadata">

**Author:** ![itpp2012](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/i/f05b48/32.png) [@itpp2012](https://www.ruby-forum.com/u/itpp2012)\
**Post date:** [July 2, 2015, 10:36am UTC](https://www.ruby-forum.com/t/small-bug-in-src-stream-ngx-stream-proxy-module-c/242510/7 "2015-07-02T10:36:57Z")

</div>

## Roman A. Wrote:

> Thanks, we’re planning to commit the fix.
> 
> Could you say your name so we could add it to the commit message?

Just stick to itpp2012, everyone knows by now we produce nginx for  
Windows  
based on the Linux version, the code base is not too different.

Posted at Nginx Forum:  
[http://forum.nginx.org/read.php?2,259969,260015#msg-260015](http://forum.nginx.org/read.php?2,259969,260015#msg-260015)
