* [RFA] Fix a typo
@ 2012-06-08 19:43 Siva Chandra
2012-06-08 20:31 ` Tom Tromey
0 siblings, 1 reply; 3+ messages in thread
From: Siva Chandra @ 2012-06-08 19:43 UTC (permalink / raw)
To: gdb-patches
[-- Attachment #1: Type: text/plain, Size: 218 bytes --]
Hello,
The attached patch fixes, what looks to me like, a definite typo.
2012-06-08 Siva Chandra Reddy <sivachandra@google.com>
* valarith.c (binop_types_user_defined_p): Fix a typo.
Thanks,
Siva Chandra
[-- Attachment #2: typo_patch.txt --]
[-- Type: text/plain, Size: 600 bytes --]
Index: valarith.c
===================================================================
RCS file: /cvs/src/src/gdb/valarith.c,v
retrieving revision 1.103
diff -u -p -r1.103 valarith.c
--- valarith.c 18 May 2012 21:02:50 -0000 1.103
+++ valarith.c 8 Jun 2012 19:03:23 -0000
@@ -279,7 +279,7 @@ binop_types_user_defined_p (enum exp_opc
if (TYPE_CODE (type1) == TYPE_CODE_REF)
type1 = check_typedef (TYPE_TARGET_TYPE (type1));
- type2 = check_typedef (type1);
+ type2 = check_typedef (type2);
if (TYPE_CODE (type2) == TYPE_CODE_REF)
type2 = check_typedef (TYPE_TARGET_TYPE (type2));
^ permalink raw reply [flat|nested] 3+ messages in thread* Re: [RFA] Fix a typo
2012-06-08 19:43 [RFA] Fix a typo Siva Chandra
@ 2012-06-08 20:31 ` Tom Tromey
2012-06-09 7:38 ` Siva Chandra
0 siblings, 1 reply; 3+ messages in thread
From: Tom Tromey @ 2012-06-08 20:31 UTC (permalink / raw)
To: Siva Chandra; +Cc: gdb-patches
>>>>> "Siva" == Siva Chandra <sivachandra@google.com> writes:
Siva> The attached patch fixes, what looks to me like, a definite typo.
Siva> 2012-06-08 Siva Chandra Reddy <sivachandra@google.com>
Siva> * valarith.c (binop_types_user_defined_p): Fix a typo.
This is ok. Nice catch.
If it is possible to write a test case for this, that would be nice to
have. But maybe it isn't possible without other fixes ... ?
Tom
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [RFA] Fix a typo
2012-06-08 20:31 ` Tom Tromey
@ 2012-06-09 7:38 ` Siva Chandra
0 siblings, 0 replies; 3+ messages in thread
From: Siva Chandra @ 2012-06-09 7:38 UTC (permalink / raw)
To: Tom Tromey; +Cc: gdb-patches
On Sat, Jun 9, 2012 at 2:01 AM, Tom Tromey <tromey@redhat.com> wrote:
>>>>>> "Siva" == Siva Chandra <sivachandra@google.com> writes:
>
> Siva> The attached patch fixes, what looks to me like, a definite typo.
> Siva> 2012-06-08 Siva Chandra Reddy <sivachandra@google.com>
> Siva> * valarith.c (binop_types_user_defined_p): Fix a typo.
>
> This is ok. Nice catch.
>
> If it is possible to write a test case for this, that would be nice to
> have. But maybe it isn't possible without other fixes ... ?
Yes, I will add the tests with the next change. Committed the above patch now.
Thanks,
Siva Chandra
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2012-06-09 7:38 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-06-08 19:43 [RFA] Fix a typo Siva Chandra
2012-06-08 20:31 ` Tom Tromey
2012-06-09 7:38 ` Siva Chandra
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox