Closed
Bug 299590
Opened 20 years ago
Closed 19 years ago
nsImapMailFolder.cpp:1529: warning: cast to pointer from integer of different size
Categories
(MailNews Core :: Networking, defect)
Tracking
(Not tracked)
RESOLVED
WONTFIX
People
(Reporter: bastiaan, Assigned: bastiaan)
References
(Blocks 1 open bug, )
Details
Attachments
(1 file)
1.16 KB,
patch
|
Bienvenu
:
review-
|
Details | Diff | Splinter Review |
This can be done more easily..
Assignee | ||
Comment 1•20 years ago
|
||
Attachment #188158 -
Flags: superreview?(bienvenu)
Attachment #188158 -
Flags: review?(bienvenu)
Assignee | ||
Updated•20 years ago
|
Severity: minor → trivial
Assignee | ||
Updated•20 years ago
|
Blocks: buildwarning
Comment 2•19 years ago
|
||
Comment on attachment 188158 [details] [diff] [review]
fix
the previous code just seems wrong...
Attachment #188158 -
Flags: superreview?(bienvenu)
Attachment #188158 -
Flags: superreview+
Attachment #188158 -
Flags: review?(bienvenu)
Attachment #188158 -
Flags: review+
Updated•19 years ago
|
Attachment #188158 -
Flags: approval1.8b4?
Comment 3•19 years ago
|
||
Comment on attachment 188158 [details] [diff] [review]
fix
actually, I think the code was right before. I need to investigate a little.
Attachment #188158 -
Flags: superreview+
Attachment #188158 -
Flags: review-
Attachment #188158 -
Flags: review+
Attachment #188158 -
Flags: approval1.8b4?
Assignee | ||
Comment 4•19 years ago
|
||
Hm. it appears to me (but please correct me if you think I'm wrong) that, given
the way the array is used, my change is wrong, but the old code seems even worse.
It appears to me that FormatStringFromID expects an array of NULL-terminated
unicode strings (in this case, only one such string). So we should use something
like..
PRUnichar tempString = { m_hierarchyDelimiter, '\0' };
const PRUnichar *formatStrings[] =
{
tempString
};
right?
Comment 5•19 years ago
|
||
If you look at the string we're formatting, it contains a %c, meaning it expects
a character, not a string, as one of the var args. I suspect your change would
have broken this code.
Assignee | ||
Comment 6•19 years ago
|
||
Ah, okay. I can't find the string we're formatting, but I'll take your word for it.
Status: NEW → RESOLVED
Closed: 19 years ago
Resolution: --- → WONTFIX
Updated•16 years ago
|
Product: Core → MailNews Core
You need to log in
before you can comment on or make changes to this bug.
Description
•