Skip Menu |

This queue is for tickets about the DBD-SQLite CPAN distribution.

Report information
The Basics
Id: 84372
Status: resolved
Priority: 0/
Queue: DBD-SQLite

People
Owner: Nobody in particular
Requestors: RURBAN [...] cpan.org
Cc:
AdminCc:

Bug Information
Severity: Unimportant
Broken in: (no value)
Fixed in: (no value)



Subject: -Wpointer-sign warnings with utf8_hop
Attached patch fixes three -Wpointer-sign warnings with utf8_hop -- Reini Urban
Subject: Wpointer-sign.diff
Index: dbdimp.c =================================================================== --- dbdimp.c (revision 15747) +++ dbdimp.c (working copy) @@ -2667,10 +2667,10 @@ /* recompute start/end offsets in bytes, not in chars */ hop = *piStartOffset - c->lastCharOffset; - byteOffset = utf8_hop((U8*)c->lastByteOffset, hop); + byteOffset = (char*)utf8_hop((U8*)c->lastByteOffset, hop); hop = *piEndOffset - *piStartOffset; *piStartOffset = byteOffset - c->pInput; - byteOffset = utf8_hop(byteOffset, hop); + byteOffset = (char*)utf8_hop((U8*)byteOffset, hop); *piEndOffset = byteOffset - c->pInput; /* remember where we are for next round */
Applied to the trunk. Thanks. On Tue Apr 02 22:54:40 2013, RURBAN wrote: Show quoted text
> Attached patch fixes three -Wpointer-sign warnings with utf8_hop
Closed as DBD::SQLite 1.38_02 was out. Thanks. On Tue Apr 02 23:52:18 2013, ISHIGAKI wrote: Show quoted text
> Applied to the trunk. Thanks. > > On Tue Apr 02 22:54:40 2013, RURBAN wrote:
> > Attached patch fixes three -Wpointer-sign warnings with utf8_hop
> >